research-software-directory / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
22 stars 15 forks source link

1095 distinguish openid providers #1100

Closed cmeessen closed 5 months ago

cmeessen commented 6 months ago

Distinguish between login and coupling auth providers

Fixes #1095 #1097

Changes proposed in this pull request:

How to test:

PR Checklist:

cmeessen commented 5 months ago

Waiting for #1103 to be closed by @ewan-escience

ewan-escience commented 5 months ago

It is also good to note that when ORCID login is disabled and ORCID coupling is enabled, when an ORCID is coupled, this ORCID is still added to the login allow list.

cmeessen commented 5 months ago

It is also good to note that when ORCID login is disabled and ORCID coupling is enabled, when an ORCID is coupled, this ORCID is still added to the login allow list.

I added a warning about this into the documentation, and also split it up into sections for common variables, coupling and authentication respectively. Could you please double check whether all common variables are mentioned correctly?

ewan-escience commented 5 months ago

Could you please double check whether all common variables are mentioned correctly?

Everything seems to be there. You used as exampleORCID_REDIRECT_COUPLE=http://YOUR-RSD-DOMAIN/auth/couple/orcid, maybe you can also use YOUR-RSD-DOMAIN for ORCID_REDIRECT.

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed for 'authentication'

Issues
0 New issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed for 'rsd-frontend'

Issues
0 New issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

cmeessen commented 5 months ago

You used as example ORCID_REDIRECT_COUPLE=http://YOUR-RSD-DOMAIN/auth/couple/orcid, maybe you can also use YOUR-RSD-DOMAIN for ORCID_REDIRECT.

I replaced it with the same values as in .env.example to be consistent here, and added a note at the top of the document to replace localhost with the corresponding RSD domain.