Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: members = message_launch.get_nrps().get_members() get error as "the aud is invalid" #118

Open
lch1999 opened this issue May 4, 2023 · 0 comments

Comments

@lch1999
Copy link

lch1999 commented May 4, 2023

When I use the scoreboard(), the code "members = message_launch.get_nrps().get_members()" in scoreboard() of app.py get the error as a "{"error":"invalid_request","error_description":"the 'aud' is invalid"} for https:///login/oauth2/token request I verified here the aud value is going as a https:///login/oauth2/token, I am not getting what aud value should be here.

Here is the log:
Traceback (most recent call last):
File "//anaconda3/envs//lib/python3.9/site-packages/flask/app.py", line 2548, in call
return self.wsgi_app(environ, start_response)
File "//pylti1.3-flask-example/game/app.py", line 26, in call
return self.app(environ, start_response)
File "/
/anaconda3/envs//lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
response = self.handle_exception(e)
File "/
/anaconda3/envs//lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/
/anaconda3/envs//lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/
/anaconda3/envs//lib/python3.9/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/
/anaconda3/envs//lib/python3.9/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/
/pylti1.3-flask-example/game/app.py", line 306, in enrolls
members = message_launch.get_nrps().get_members()
File "//anaconda3/envs//lib/python3.9/site-packages/pylti1p3/names_roles.py", line 84, in get_members
members, members_url = self.get_members_page(members_url)
File "//anaconda3/envs//lib/python3.9/site-packages/pylti1p3/names_roles.py", line 66, in get_members_page
data = self.get_nrps_data(members_url=members_url)
File "//anaconda3/envs//lib/python3.9/site-packages/pylti1p3/names_roles.py", line 48, in get_nrps_data
data = self.service_connector.make_service_request(
File "/
/anaconda3/envs//lib/python3.9/site-packages/pylti1p3/service_connector.py", line 131, in make_service_request
access_token = self.get_access_token(scopes)
File "/
/anaconda3/envs//lib/python3.9/site-packages/pylti1p3/service_connector.py", line 101, in get_access_token
raise LtiServiceException(r)
pylti1p3.exception.LtiServiceException: HTTP response [https://
__/login/oauth2/token]: 400 - {"error":"invalid_request","error_description":"the 'aud' is invalid"}

Looking forward to your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant