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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | azure_oauth_sso-3481416-6.patch | 12.06 KB | ahmadhalah |
| #3 | azure_oauth_sso-normalize-config-paths.patch | 12.06 KB | fte |
Issue fork azure_oauth_sso-3481416
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
Comment #2
mahdiwadi commentedDear 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.
Comment #3
fte commentedHello,
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 :
Please find corrections in azure_oauth_sso-normalize-config-paths.patch patch.
Comment #5
jana_najdi01 commentedi was facing the infinite redirect problem and no_cache: 'TRUE' only solved my problem
thank you
Comment #6
ahmadhalahThank you, @fte. I will reapply the same patch, updating the filename to comply with the Drupal patch naming convention.
Comment #8
ahmadhalahComment #9
ahmadhalah