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

OAuth Browsable API Login #188

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

OAuth Browsable API Login #188

wants to merge 33 commits into from

Conversation

jhazentia
Copy link
Member

Adds ability to log in to sensor browsable API using OAuth. The user logs in using OAuth 2 Authorization Code flow. Then the token is stored in the session.

@@ -60,15 +60,16 @@ MANAGER_IP="$(hostname -I | cut -d' ' -f1)"
# Set to OAUTH if using OAuth Password Flow Authentication, callback url needs to be api/v2/results
CALLBACK_AUTHENTICATION=TOKEN

CLIENT_ID=sensor01.sms.internal
CLIENT_ID=sensor01.sms.internal # must match FQDN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you not just use socket.getfqdn(). Will that not work in Docker?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not able to get the right value in docker

@jhazentia
Copy link
Member Author

Note the following still need to be implemented:

  • Admin site OAuth integration
  • Admin site javascript session timeout logout redirect (session will still expire after 15 minutes, but no automatic logout redirect)

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

Successfully merging this pull request may close these issues.

None yet

3 participants