oAuth 2 problem

73 views
Skip to first unread message

Χρήστος Κατσάνης (Χρήστος)

unread,
Apr 17, 2024, 11:46:30 AM4/17/24
to DSpace Technical Support
Hey, i m trying to create a login atemp with my university site with oidc but i have some difficults with endpoint on my server.

i have /server/api/authn/oidc as endpoint at gives me a message error 401
the endpoint /server/api/authn/login gives me 404

i can't understand what was wrong

Michael Plate

unread,
Apr 17, 2024, 11:59:57 AM4/17/24
to dspac...@googlegroups.com
Hi,

Am 17.04.24 um 15:57 schrieb Χρήστος Κατσάνης (Χρήστος):
you need the endpoint of the oAuth server from the university to use it,
the realm, a client-id and a secret. See the
[dspace]/config/modules/authentication-oidc.cfg .

Usually you can obtain some information (not the client-id, not the
secret) from
https://<your-oauth-server>/auth/realms/<your-realm>/.well-known/openid-configuration
in JSON.

CU

Michael

Χρήστος Κατσάνης (Χρήστος)

unread,
Apr 17, 2024, 12:26:57 PM4/17/24
to DSpace Technical Support
Hey the end points:
authentication-oidc.authorize-endpoint = https://login.***.gr/authorization
authentication-oidc.token-endpoint = https://login.***.gr/token
authentication-oidc.user-info-endpoint = https://api.***.gr/profile
authentication-oidc.redirect-url = ${dspace.server.url}/api/authn/oidc
authentication-oidc.scopes = profile

all this above are correct. I have checked with my teacher but i see the error:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Apr 17 19:14:50 EEST 2024
There was an unexpected error (type=Unauthorized, status=401).
Authentication failed!

Χρήστος Κατσάνης (Χρήστος)

unread,
Apr 17, 2024, 4:05:59 PM4/17/24
to DSpace Technical Support
How i can get the generated token from  authentication-oidc.token-endpoint = https://login.***.gr/token and pass it to  authentication-oidc.user-info-endpoint = https://api.***.gr/profile

i see the logs files that can't access the api because i don't have any option how to post token to api url
Reply all
Reply to author
Forward
0 new messages