Comments (9)
The cause is client_id
is lost after redirect.
We now use display_app_name
to show the app name but use clients[*].logo_uri
. clients[*].logo_uri
relies on client_id
to be present.
@kiootic Thoughts?
from skygear-server.
Technically the logo should be associated with the whole app, not specific OAuth client?
We need to make a distinction between RP metadata and IdP metadata.
Actually, in Auth UI, most likely RP metadata is used only at the entry point, e.g. showing 'you're logging in to App A'
from skygear-server.
Proposal
- Add
metadata
to ODICConfiguration metadata
hasclient_name
andlogo_uri
which replacesdisplay_app_name
andclient[*].logo_uri
Thoughts?
from skygear-server.
@kiootic ping
from skygear-server.
Add metadata to ODICConfiguration
AuthUIConfiguration is better?
metadata has client_name and logo_uri which replaces display_app_name and client[*].logo_uri
display_app_name
should be kept, but moved to auth_ui.metadata.display_app_name
. Both client_name
and logo_uri
should be kept for RPs.
from skygear-server.
clients:
- client_id: abc
# client_name and logo_uri are ignored for now.
client_name: My Client
logo_uri: https://example.com/a.png
auth_ui:
metadata:
# app_name and logo_uri are used instead.
app_name: My App
logo_uri: https://example.com/b.png
from skygear-server.
I suppose we'll inject the metadata directly into template context? So no validation is needed on metadata?
from skygear-server.
We have to localize localizable fields, such as app_name
and logo_uri
. So it is not a naive injection into the template context. But why are you asking that question?
from skygear-server.
I'm just thinking whether developer can put custom data in metadata for consumption in their own template.
from skygear-server.
Related Issues (20)
- User is redirected to 404 in SSO promotion flow
- authgear HOT 7
- Review web UI flows
- Cannot show app name in sms otp message
- Submit multiple times need go backward multiple times
- Handle JWT time drift HOT 1
- Compatibility with Back-forward cache
- [Auth UI] Should use number keyboard for verification code HOT 1
- [Auth UI] Empty page shown after pressing Next when attempt to promote a guest user
- [Auth UI] Not able to back to email / phone number input page after inputting an invalid verification code HOT 2
- [Auth UI] Email field fills up with phone number after back from verification page
- [Auth UI] "Invalid Credentials" error message persists when back from the verification page HOT 3
- [Auth UI] Should not show 0s for resend count down
- Migrate migration tool HOT 1
- XHR form submission should exclude buttons that are not submitter
- OAuth response mode
- Refactor configuration
- Enforce form must have one and only one submit button
- Potential import collision: import path should be "gopkg.in/h2non/gock.v1", not "github.com/h2non/gock". HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skygear-server.