Coder Social home page Coder Social logo

Comments (9)

louischan-oursky avatar louischan-oursky commented on June 11, 2024

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.

kiootic avatar kiootic commented on June 11, 2024

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.

louischan-oursky avatar louischan-oursky commented on June 11, 2024

Proposal

  1. Add metadata to ODICConfiguration
  2. metadata has client_name and logo_uri which replaces display_app_name and client[*].logo_uri

Thoughts?

from skygear-server.

louischan-oursky avatar louischan-oursky commented on June 11, 2024

@kiootic ping

from skygear-server.

kiootic avatar kiootic commented on June 11, 2024

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.

louischan-oursky avatar louischan-oursky commented on June 11, 2024
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.

kiootic avatar kiootic commented on June 11, 2024

I suppose we'll inject the metadata directly into template context? So no validation is needed on metadata?

from skygear-server.

louischan-oursky avatar louischan-oursky commented on June 11, 2024

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.

kiootic avatar kiootic commented on June 11, 2024

I'm just thinking whether developer can put custom data in metadata for consumption in their own template.

from skygear-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.