Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Access to Projects when logging into AAF #4

Open
archetype-aus opened this issue Feb 28, 2019 · 6 comments
Open

No Access to Projects when logging into AAF #4

archetype-aus opened this issue Feb 28, 2019 · 6 comments

Comments

@archetype-aus
Copy link

archetype-aus commented Feb 28, 2019

Hi there,
I installed your plugin and can login - looks good and works great so thank you - except...

I can't access the projects - this is the error I get.

image

I am an admin so have complete access to everything. Doesn't matter if I approve permissions or specifically add my user in the Project Access section I can't access. Tried logging off and on again, no joy.

If I add a new project I can access everything again until I log out. I can also access data / scans directly by selecting data from the Browse dropdown instead of Projects. Very strange. The only thing I can find in the logs is this:

org.nrg.xnat.security.XnatProviderManager - The provider ID openid is enabled, but there is no configured definition for that ID

My openid-provider.properties (I removed the secrets and siteURL)

auth.method=openid
type=openid
provider.id=openid
visible=true
auto.enabled=true
auto.verified=true

Name displayed in the UI

name=OpenID Authentication Provider

Toggle username & password login visibility

disableUsernamePasswordLogin=true

List of providers that appear on the login page, see options below.

enabled=aaf

Site URL - the main domain, needed to build the pre-established URL below.

siteUrl=
preEstablishedRedirUri=/openid-login

AAF OpenID

openid.aaf.accessTokenUri=https://central.aaf.edu.au/providers/op/token
openid.aaf.userAuthUri=https://central.aaf.edu.au/providers/op/authorize
openid.aaf.scopes=openid,profile,email
openid.aaf.link=

To sign-in using your AAF credentials, please click on the button below.

Flag that sets if we should be checking email domains

#openid.aaf.shouldFilterEmailDomains=true - This will probably need to be changed when we go live###
openid.aaf.shouldFilterEmailDomains=false

Domains below are allowed to login, only checked when 'shouldFilterEmailDomains' is true

openid.aaf.allowedEmailDomains=

Flag to force the user creation process, normally this should be set to true

openid.aaf.forceUserCreate=true

Flag to set the enabled property of new users, set to false to allow admins to manually enable users before allowing logins, set to true to allow access right away

openid.aaf.userAutoEnabled=false

Flag to set the verified property of new users

openid.aaf.userAutoVerified=true

Property names to use when creating users

openid.aaf.emailProperty=email
openid.aaf.givenNameProperty=name
openid.aaf.familyNameProperty=deliberately_unknown_property

Any help gratefully received.
Thanks,

Alastair Ferguson

@govin2000
Copy link

Hi, were you able to figure this out?

@archetype-aus
Copy link
Author

archetype-aus commented Dec 10, 2019 via email

@jmz-b
Copy link

jmz-b commented Aug 18, 2020

Hey I opened a new issue which I think is probably related: #5

@exxa-tech
Copy link

Hi There,
I have been involved in a consortium of Australian Universities called the Australian Imaging Service. OpenID / AAF is very much front and centre of this initiative from an integration perspective. AIS has been created to help simplify, enhance and automate deployment and usage of XNAT.

Anyway, we have fixed this issue with an updated plugin.

You can read full documentation here with a link to new plugin repository. This has been tested on Xnat 1.7.6.

https://australian-imaging-service.github.io/charts/operations/AAF-Integration.html

Thanks,

Alastair

@exxa-tech
Copy link

Direct Jar download location:
https://github.com/Australian-Imaging-Service/xnat-openid-auth-plugin/releases/download/1.0.2/xnat-openid-auth-plugin-all-1.0.2.jar

@jmz-b
Copy link

jmz-b commented Feb 4, 2021

Hi There,
I have been involved in a consortium of Australian Universities called the Australian Imaging Service. OpenID / AAF is very much front and centre of this initiative from an integration perspective. AIS has been created to help simplify, enhance and automate deployment and usage of XNAT.

Anyway, we have fixed this issue with an updated plugin.

You can read full documentation here with a link to new plugin repository. This has been tested on Xnat 1.7.6.

https://australian-imaging-service.github.io/charts/operations/AAF-Integration.html

Thanks,

Alastair

Hey Alastair,

Thank you very much for this. I have tested your fork against a local instance of keycloak and it seem to work perfectly so far!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants