-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore: example to create secure fiware header #319
Conversation
SERVICE_PATH = '/' | ||
CLIENT_ID = 'client_id' | ||
CLIENT_SECRET = 'client_secret' | ||
KEYCLOAK_HOST = 'https://keycloak.example.com' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbanoeon could you generally add some hints for example here, TODO: adapt it to your authentication endpoint
@@ -0,0 +1,111 @@ | |||
import os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbanoeon, could you add a short description of what this example is about at the beginning? Just make sure the style aligns with the other examples we already have
authorization='Bearer %s' % token) | ||
|
||
# create a context broker client | ||
cb_client = ContextBrokerClient(url=CB_URL, fiware_header=fiware_header, session=session) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbanoeon could you add some get/put requests here to show that the request does not need to be adapted. By the way, the token must be consistently queried, right? If so, please also add a hints regarding this
The rest looks good to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will still update the changelog
No description provided.