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
Describe your question/
How to access to my "resource"/Application using a bearer token? In this case, I am just testing with Curl
I am unable to access my "resource"/Application using curl with either bearer token nor a "Token" generated from the Admin->Directory->Tokens and App passwords.
The access token I have created are with the goauthentik.io/api scope, yet no access to the resource/application that the provider manages.
Tried:
Access token for a 'Normal user' account (Internal) to a provider 'OAuth2/OpenID Provider'
Access token for a 'Normal user account to a provider 'Proxy Provider'
Service account to a provider 'OAuth2/OpenID Provider'
Service account to a provider 'Proxy Provider'
Normal user token created from "Tokens and App passwords" to a provider 'OAuth2/OpenID Provider'
Normal user token created from "Tokens and App passwords" to a provider 'Proxy Provider'
Also tried with ak_proxy scope (don't know what it means, but it didn't help)
No success on any of these. My goal is to access the resources behind 'OAuth2/OpenID' and 'Proxy' Providers.
Accessing these resources using normal Chrome/Edge works by using the 'normal' UI login for both the Normal user and the Service account (I set a password on the service account using the admin panel)
The login flow is just the default standard implicit flow. I ensured that the application/providers have been checked with intercepting headers for login.
Relevant info
Tried both Authentik version 2024.12.2 and version 2024.8.3. No success on either
Interestingly, the second log for oauth_client_secret shows the user as '' (empty).
However, querying userinfo returns expected result with the access token:
Version and Deployment (please complete the following information):
authentik version: 2024.12.2 (but also tried 2024.8.3)
Deployment: docker-compose
Additional Information:
The oauth2 provider is being accessed directly (testing with localhost/local IP), whereas the proxy provider is being accessed behind haproxy. Both can be access properly from the web browser, so I am sure its nothing related to my proxy.
The text was updated successfully, but these errors were encountered:
Describe your question/
How to access to my "resource"/Application using a bearer token? In this case, I am just testing with
Curl
I am unable to access my "resource"/Application using curl with either bearer token nor a "Token" generated from the Admin->Directory->Tokens and App passwords.
The access token I have created are with the
goauthentik.io/api
scope, yet no access to the resource/application that the provider manages.Tried:
Access token for a 'Normal user' account (Internal) to a provider 'OAuth2/OpenID Provider'
Access token for a 'Normal user account to a provider 'Proxy Provider'
Service account to a provider 'OAuth2/OpenID Provider'
Service account to a provider 'Proxy Provider'
Normal user token created from "Tokens and App passwords" to a provider 'OAuth2/OpenID Provider'
Normal user token created from "Tokens and App passwords" to a provider 'Proxy Provider'
Also tried with ak_proxy scope (don't know what it means, but it didn't help)
Getting the access token (success):
Actually accessing the resource (where it fails):
Expected response is what my resource should return, but instead I receive the HTML of Authentik's login page:
No success on any of these. My goal is to access the resources behind 'OAuth2/OpenID' and 'Proxy' Providers.
Accessing these resources using normal Chrome/Edge works by using the 'normal' UI login for both the Normal user and the Service account (I set a password on the service account using the admin panel)
The login flow is just the default standard implicit flow. I ensured that the application/providers have been checked with intercepting headers for login.
Relevant info
Tried both Authentik version 2024.12.2 and version 2024.8.3. No success on either
Screenshots
Logs
Logs for authentik-server-1
Interestingly, the second log for
oauth_client_secret
shows the user as '' (empty).However, querying userinfo returns expected result with the access token:
Version and Deployment (please complete the following information):
Additional Information:
The oauth2 provider is being accessed directly (testing with localhost/local IP), whereas the proxy provider is being accessed behind haproxy. Both can be access properly from the web browser, so I am sure its nothing related to my proxy.
The text was updated successfully, but these errors were encountered: