Re: OAuth authentication

2022-01-19 Thread Emond Papegaaij
I've received the code from Martijn Dashorst. It should be enough to get you up and running. This page is mounted like this: mountPage("/oidc/#{action}", KeyhubOidcPage.class); Redirect to this page to start the authentication. package nl.topicus.iridium.conversie.web.pages.public_pages.keyhub;

Re: OAuth authentication

2022-01-18 Thread Martin Grigorov
Hi, You could use any OAuth library you like. The idea is: - when an unauthenticated user requests a secured page Wicket should redirect to the login page - that logic page is not managed by Wicket but by your preferred OAuth library - in the callback from the OAuth library you should save the dat

Re: OAuth authentication

2022-01-18 Thread Emond Papegaaij
Hi Boris, I would go for pac4j-oidc. It does not provide Wicket integration out of the box, but it is very easy to setup and you only need a few lines of code to check the authentication. Perhaps @dashorst can share the code: https://twitter.com/dashorst/status/280001847054336 You can find an

Re: OAuth authentication

2022-01-18 Thread Shengche Hsiao
Subject: OAuth authentication What is the current best practice for allowing users to sign in to a Wicket application using an OAuth2 provider (eg Google account, Twitter, Canvas, etc). * Is Apache Shiro a possibility? Looks like it’s got some Wicket integration, but OAuth2 is listed as

OAuth authentication

2022-01-18 Thread Boris Goldowsky
What is the current best practice for allowing users to sign in to a Wicket application using an OAuth2 provider (eg Google account, Twitter, Canvas, etc). * Is Apache Shiro a possibility? Looks like it’s got some Wicket integration, but OAuth2 is listed as “coming”. * PicketLink? *