-
|
Hi, thanks in advance for any advice on this. I have stood up Artifacthub on my AWS EKS cluster using the helm chart. IWe are wanting to provide a sign on using our Azure AD Company Tenant. I've set up the Application Registration and as far as I can tell after performing a sign in request I get token Access and id tokens back. The "as far as I can tell" is because I can only see the callback coming via dev tools in chrome but I have taken that code and made the necessary manual requests to the token end point and get a response that contain and the id and access tokens. Looking I have flagged to skip email verification (as there is no such attribute available in Entra ID) but I fail to get a session cookie, hence the /api...profile call fails with a 401 Unauthorised error. I've not bee able to work out what my config to token is missing. I include my redacted values file for more information. imageTag: v1.22.0
postgresql:
enabled: true
auth:
username: artifacthub
password: blah-blah-blah
database: artifacthub
primary:
persistence:
enabled: true
size: 10Gi
storageClass: gp3
log:
level: debug
hub:
deploy:
nodeSelector:
kubernetes.io/arch: "amd64"
replicaCount: 1
server:
baseURL: https://artifact-hub.blah.blah
allowUserSignUp: true
oauth:
oidc:
enabled: true
scopes:
- openid
- profile
- email
skipEmailVerifiedCheck: true
issuerURL: https://login.microsoftonline.com/blah-tenantid-blah/v2.0
redirectURL: https://artifact-hub.blah.blah/oauth2/callback
clientID: 756fa3f3-blah-blah-blah-blahblahblah
image:
repository: artifacthub/hubHere is an example id token:- { From Dev tools I see the incoming callback (my redirect I registered):- If anyone has had this working with Entra ID I'd be grateful for any pointers. I do get api responses from Status and random albeit I have not configured anything else so would not expect to see much in the front end. I'm sure this must be a well trodden path so perhaps I am missing some key documentation or configuration. If I can provide anything further please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Hi @TWBrown42 👋 Did you see any errors in the hub(s) logs? If there's something wrong with the authentication flow, there should be something in there. |
Beta Was this translation helpful? Give feedback.
-
|
if you are using the general oauth option rather than Google or GitHub then your redirect will be /oauth/oidc/callback. |
Beta Was this translation helpful? Give feedback.
Got it! Looking at the routing code for the oauth I found my path was incorrect:-
For the oidc option the callback is expecting to be on oauth/oidc/callback not oauth2/callback! Now sorted - I've no idea where I got oauth2 and my path.
Thanks for your support, it indirectly made me look at the paths.