You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a configuration option to allow the selection of an authentication scheme, Bearer or Basic.
Modify OAuth2Srv.scala at around line 96 to build an appropriate Authorization header based on the configuration option.
The text was updated successfully, but these errors were encountered:
hkelley
changed the title
[Feature Request] OAuth support for Basic authentication
[Feature Request] OAuth support for Basic authentication to authorization server
Apr 26, 2020
hkelley
changed the title
[Feature Request] OAuth support for Basic authentication to authorization server
[Feature Request] OAuth support for Basic authentication to authorization server's tokenUrl
Apr 27, 2020
The basic authentication header format is Authorization: Basic base64(user:password). I don't have user and password, so what should I put in that header ? The token ?
I think I was mistaken when I opened this. The bearer token mechanism in TheHive is working with Okta (bearer/access token from Authentication servers is delivered in an HTTP Authorizaion header to /token endpoint).
Current version of OAuth2Srv.scala assumes the authorization servers support the the RFC 6750 Bearer token.
Some authorization servers (Okta) only support Basic auth.
https://developer.okta.com/docs/reference/api/oidc/#token
Possible Solution
Add a configuration option to allow the selection of an authentication scheme, Bearer or Basic.
Modify OAuth2Srv.scala at around line 96 to build an appropriate Authorization header based on the configuration option.
The text was updated successfully, but these errors were encountered: