elixir-cloud-aai / cwl-WES

Trigger CWL workflows via GA4GH WES and TES
Apache License 2.0
16 stars 18 forks source link

Lifetime of auth tokens limiting workflow execution runtime #52

Open uniqueg opened 5 years ago

uniqueg commented 5 years ago

Is your feature request related to a problem? Please describe. Current support for the OAuth2 implicit flow authorization scheme, handling authorization from WES-ELIXIR via cwl-tes to TESK is limited by the duration of validity of the issues tokens (e.g., 60 minutes for ELIXIR AAI). In other words: Workflows with runtimes exceeding one hour cannot currently be run in an AAI-secured setup.

Describe the solution you'd like Support for refresh tokens should be added to WES-ELIXIR to allow negotation of new authorization tokens. For ELIXIR AAI, a refresh token can be obtained by requesting a token with an offline_token scope. In order to be able to do that, WES-ELIXIR first needs to be registered as a client with the identity provider/broker.

Describe alternatives you've considered N/A at this time.

Additional context

uniqueg commented 4 years ago

See AAI guidelines set up by ELIXIR Cloud & AAI. This needs to be set up together with a client that exposes a dedicated endpoint for refreshing the token.