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

Auth UI #411

Closed
Closed

Conversation

louischan-oursky
Copy link
Contributor

features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/design.md Show resolved Hide resolved
Copy link
Contributor

@chpapa chpapa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Initial feedback.

features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/design.md Show resolved Hide resolved
features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/configuration.md Outdated Show resolved Hide resolved
features/370-auth-ui/sdk.md Show resolved Hide resolved
@louischan-oursky
Copy link
Contributor Author

louischan-oursky commented Feb 14, 2020

The draft was rewritten. The new design is more coherent with OpenID Connect.

@kiootic @chpapa

Copy link
Contributor

@chpapa chpapa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions / thought / clarifications

features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/design.md Outdated Show resolved Hide resolved
features/370-auth-ui/design.md Show resolved Hide resolved
features/370-auth-ui/design.md Outdated Show resolved Hide resolved
@louischan-oursky
Copy link
Contributor Author

@carmenlau @kiootic @chpapa

I have rewritten this PR. Various specs have been updated to reflect the new design.

features/202-session-management/design.md Outdated Show resolved Hide resolved

### Custom domain

If the app is using custom domain, then Auth Gear is served at the developer's wish.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sure how custom domain looks like after this change? Originally we only have one domain for all gears and Skygear App.

After auth ui is supported, developers can configure gears domain and skygear app domain separately?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I should update the spec of custom domain to reflect this.

features/302-session-info-in-http-header/api.md Outdated Show resolved Hide resolved

## Old SDK and old gateway behavior

When the SDK receives a response with `x-skygear-try-refresh-token: true`, it tries to refresh the access token.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can try using silent authentication.

  1. Login at authorize, set cookie at AuthUI
  2. On app launch/expired -> call authorize with prompt = none
  3. AuthUI check cookie session: yes -> return code, no -> return 401
  4. Receive code & send token request, receive access_token + expires_in, NO REFRESH TOKEN
  5. When expires (according to expires_in): go to 1
  6. When receive 401: either revoked, or custom 401 -> goto 1

- "https://example.com"
client_name: Web App
logo_uri: "https://example.com/logo.png"
disabled: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this, spec is not updated.

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

Successfully merging this pull request may close these issues.

4 participants