Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Fix SSO token implementation #96

Closed
chouseknecht opened this issue Sep 4, 2019 · 1 comment · Fixed by ansible/ansible#63031
Closed

Fix SSO token implementation #96

chouseknecht opened this issue Sep 4, 2019 · 1 comment · Fixed by ansible/ansible#63031

Comments

@chouseknecht
Copy link
Contributor

chouseknecht commented Sep 4, 2019

Post AnsibleFest we need to complete the following tasks for implementing SSO tokens:

  • UI: Present the JWT offline token to user with a note that the token is valid as long as it gets used every 30 days.
  • UI: present a link to the token management page where the an offline token can be invalidated: https://sso.redhat.com/auth/realms/redhat-external/account/
  • UI: provide instructions or an example of putting the token in the config file
  • API: within the response object for /api include a link to where the client should go to generate an access token (applies to Community Galaxy as well, in which case the value will be null).
  • Client: check the /api response object for a token generation link. If this link exists, then generate a token.
  • Client: add logic to generate an access token. Example: curl -X POST 'https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token' -d "grant_type=offline_token" -d "client_id=customer-portal" -d "refresh_token=<token>"
  • Client: make subsequent API requests with the correct token
@alikins
Copy link
Contributor

alikins commented Oct 2, 2019

See ansible/ansible#63031 for ansible-galaxy changes.

And ansible/galaxy-api#95 for galaxy-api changes.

chouseknecht pushed a commit to ansible/ansible that referenced this issue Oct 4, 2019
Adds support for token authentication in Automation Hub. Fixes: ansible/galaxy-dev#96
abadger pushed a commit to ansible/ansible that referenced this issue Oct 8, 2019
Adds support for token authentication in Automation Hub. Fixes: ansible/galaxy-dev#96

(cherry picked from commit 239d639)
anshulbehl pushed a commit to anshulbehl/ansible that referenced this issue Dec 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants