Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Remove redirection while using OpenID Connect
Hello, I am completely new to Liferay. I am doing login in Liferay DXP 7.2 Portal through OpenID Connect with Azure AD as IdP. When I click Sign In on portal it navigates to Sign In popup where I select OpendID Connect (attached popup 1)and then I am redirected to popup having OpenID providers list (attached popup 2)which contains only one value in drop down as our requirement is to provide access through Microsoft only. Then I am redirected to actual login window where I need to enter email (attached popup 3).
I want to skip these two intermediate popup as they are unnecessary and directly would like two enter email. Can anybody help on this? Thanks in advance.
I want to skip these two intermediate popup as they are unnecessary and directly would like two enter email. Can anybody help on this? Thanks in advance.
Attachments:
Hi Upender, You might look at this https://lifedev-solutions.blogspot.com/2020/03/liferay-keycloak-integration-sso-and.html
The approach works for me in Liferay against Keycloak and I don't see why it wouldn't against Azure AD. For Liferay v7.3.3 CE I had to modify it slightly as there were small changes in dependent code in Liferay v7.3.3 compared to v7.3.2
The approach works for me in Liferay against Keycloak and I don't see why it wouldn't against Azure AD. For Liferay v7.3.3 CE I had to modify it slightly as there were small changes in dependent code in Liferay v7.3.3 compared to v7.3.2
Hi There,OpenIdConnectProviderRegistry and OpenIdConnectServiceHandler References given in above blog are throwing nullpointer.
@Reference
private OpenIdConnectProviderRegistry _openIdConnectProviderRegistry;
@Reference
private OpenIdConnectServiceHandler _openIdConnectServiceHandler;
Not able to resolve these dependencies. Can I get some pointers on this issue?
Thanks in Advance
@Reference
private OpenIdConnectProviderRegistry _openIdConnectProviderRegistry;
@Reference
private OpenIdConnectServiceHandler _openIdConnectServiceHandler;
Not able to resolve these dependencies. Can I get some pointers on this issue?
Thanks in Advance
Upender Kashyap:
@Reference only gets resolved within a @Component. If you're not using them in such a class, they won't be resolved/autowired, thus generating NPE. If they were properly initialized, they'd never be null, as you didn't declare them as optional.
Hi There,OpenIdConnectProviderRegistry and OpenIdConnectServiceHandler References given in above blog are throwing nullpointer.
@Reference
private OpenIdConnectProviderRegistry _openIdConnectProviderRegistry;
@Reference
private OpenIdConnectServiceHandler _openIdConnectServiceHandler;
Not able to resolve these dependencies. Can I get some pointers on this issue?
The blog shows snippets of useful code and provides guidance yet you'll still need to create a suitable module in a Liferay workspace. I can't tell from what you write how far along you are in setting up your dev environment. You might reach out also to the blog author.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™