Skip to content
Snippets Groups Projects
Verified Commit f24229aa authored by Mark's avatar Mark
Browse files

Make comments more explicit

parent 9c1d0fbe
No related branches found
No related tags found
1 merge request!5Service Integration
...@@ -12,14 +12,14 @@ app = Flask(__name__) ...@@ -12,14 +12,14 @@ app = Flask(__name__)
def home(): def home():
"""Checks user app permission """Checks user app permission
Checks user app permission, by loading a consent object via the Hydra admin API and Checks user app permission by loading a consent object via the Hydra admin API and
validating, that the user triggering the request has sufficient permissions by querying validating that the user triggering the request has sufficient permissions by querying
the GraphQL API. If the user is allowed to use the app the request is accepted and openID the GraphQL API. If the user is allowed to use the app the request is accepted and openID
claims are sent to Hydra. claims are sent to Hydra.
Args: Args:
consent_challenge: Reference to a consent challenge object that can be requested via the Hydra consent_challenge: Reference to a consent challenge object in form of an alphanumeric
Admin API (GET) String. Can be used to retrieve the consent challenge object via the Hydra Admin API (GET)
Returns: Returns:
Redirect to the url that is provided by the consent challenge object. Redirect to the url that is provided by the consent challenge object.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment