quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.84k stars 2.7k forks source link

Docs: security-oidc-bearer-token-authentication guide Keycloak SPA not working #37845

Open jedla97 opened 11 months ago

jedla97 commented 11 months ago

Describe the bug

This is follow up/standalone issue for #37463 as we discussed with @sberyozkin

Problem is that the javascript example in Single Page Applications is no longer working. The change is from Keycloak 22 as you can see here.

Maybe it will need even evaluation if this way of accessing token is still possible or it's needs more complex solution which can be hard to create for guide.

Expected behavior

Load web page without error. There is no need for exact page working out of box, just example.

Actual behavior

Throwing error that .success() function not existing (not remember exact error)

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

quarkus-bot[bot] commented 11 months ago

/cc @pedroigor (bearer-token,keycloak,oidc), @sberyozkin (bearer-token,keycloak,oidc,security)

jedla97 commented 11 months ago

If I found time I'll look on this but can't promise anything so let it unassigned for time being.

sberyozkin commented 11 months ago

Thanks @jedla97 for opening this tracker