unity-sds / unity-ads-deployment

Apache License 2.0
0 stars 4 forks source link

Connect Dockstore to U-CS Authentication #49

Open mcduffie opened 2 years ago

mcduffie commented 2 years ago

Connect Dockstore to U-CS authentification services

mliukis commented 1 year ago

@mcduffie could you, please, point me to the details of the U-CS Authentication

Is it the one: https://github.com/unity-sds/unity-cs/wiki/Unity-Authorization-Model ?

mcduffie commented 1 year ago

The core of what is used is AWS Cognito. I think you would most likely need to use OpenID to connect it with Dockstore.

mliukis commented 10 months ago

Contacted Dockstore developers. Their response is:

While we've occasionally used AWS Cognito for projects related to Dockstore. We've never used it for supporting login of end users.

You could probably look at https://github.com/dockstore/dockstore-ui2/tree/develop/src/app/login for the UI and https://github.com/dockstore/dockstore/blob/develop/dockstore-webservice/src/main/java/io/dockstore/webservice/resources/TokenResource.java or https://github.com/dockstore/dockstore/blob/develop/dockstore-webservice/src/main/java/io/dockstore/webservice/SimpleAuthenticator.java for the webservice.

For AWS Cognito, we've previously used it to handle auth for Kibana, it probably looked a bit like this https://medium.com/tensult/aws-cognito-authentication-for-kibana-7f1f99dacb5