Two issues.

1. Redirect loop

I added following values to the basic config
- Client ID
- Tenent ID
- Client Secret Value

(I also have OIDC connected multiple other services, so I am pretty sure I did not screw up)

And copy and pasted redirect URI to Azure Portal's app registration's authentication url.

Checked 'show microsoft login button on login form (Not sure why you don't support image for this, only letters..)

Also checked Enable SSO Logout

=> I can see Fields Mapping, but I left it blank
=> Roles Mapping gives me error, and I have no idea why. I did this settings w/ admin account

After that, test configuration (the gray color button) gives me 404 error.
In a fresh private mode broswer, I get a redirection loop, and eventually Microsoft rejects my login.

2. Uninstallation creates 'critical errors'
Sorry but after the failing attempt, I tried to uninstall your module.
Then, I get critical error on Reports -> Status

From that on, I wasn't able to access a number of Admin -> Structure -> most pages that calls for users (like contents types, for example)

I re-installed this module, and traced where the error comes from.
In the Configuration -> People -> account settings -> Manage fields, I can see below two entries are 'locked' in operations.

- Access Token: Field_access_token
- Refresh Token: field_refresh_token

Since these two values are 'locked', even after uninstallation, they do not disappear, and creates critical error to all configuration pages that calls 'user'.

----
I am happy to use this module if it works, but if not, please at least tell me how to make them 'unlock' so that I can uninstall without an issue.

What comes a bit more troublesome is that even after the uninstallation, I still can see two datatables for user, access and refresh, are still there.

Would deeply appreciate if removal of datatables becomes also a part of uninstallation process.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

keithkhl created an issue. See original summary.

mahdiwadi’s picture

Dear keithkhl,

Thank you for bringing these issues to my attention. I will review the problems with the redirect loop and uninstallation errors and work on resolving both as soon as possible. I appreciate your patience while I address them.

fte’s picture

Hello,

I had a similar issue because /oauth/login page was cached.
I fixed the issue by adding no_cache: 'TRUE' in the routing file.

Also I had issues with config import/export due to bad config names.
I changed them like this :

  • azure_oauth_sso_config.settings -> azure_oauth_sso.settings
  • azure_oauth_sso_fields_mapping.settings -> azure_oauth_sso.fields_mapping
  • azure_oauth_sso_roles_mapping.settings -> azure_oauth_sso.roles_mapping

Please find corrections in azure_oauth_sso-normalize-config-paths.patch patch.

eyad alanati made their first commit to this issue’s fork.

jana_najdi01’s picture

i was facing the infinite redirect problem and no_cache: 'TRUE' only solved my problem
thank you

ahmadhalah’s picture

StatusFileSize
new12.06 KB

Thank you, @fte. I will reapply the same patch, updating the filename to comply with the Drupal patch naming convention.

  • 5e0d58f6 committed on 1.0.x
    Issue #3481416 by eyad alanati, fte, ahmadhalah, keithlee_giai,...
ahmadhalah’s picture

Status: Active » Fixed
ahmadhalah’s picture

Status: Fixed » Closed (fixed)