How to change this text in Signup with github-90b8...
# _newcomer
w
How to change this text in Signup with github-90b8 with simply Github . I tried adding label in kratos.yml under oidc. doesn't work. ory/elements I am using for this form
b
It should use the label in there, how did you try adding the label?
w
Copy code
selfservice:
  default_browser_return_url: <http://127.0.0.1:4455/welcome>
  allowed_return_urls:
    - <http://127.0.0.1:4455>
    - <http://127.0.0.1:4455/error>
    - <http://127.0.0.1:4455/login>
    - <http://127.0.0.1:4455/registration>

  methods:
    password:
      enabled: true
      config:
        - min_password_length: 12
          identifier_similarity_check_enabled: true

    oidc:
      enabled: true
      config:
        providers:
          - id: github-90b8
            provider: github
            label: Github
            client_id: Kratos
            client_secret: 72672ebae56369e72c06050fbe2e22eaaa7cfe4c
            mapper_url: "file:///etc/config/kratos/oidc.github.jsonnet"
            pkce: auto
            scope:
              - user:email
and then whatever data is coming after doing a fetch request to CreateBrowserRegistrationFlow or LoginFlow I pass it to UserAuthCard
b
Yup, that's correct, did you initialize a new flow after you made that change in the config?
w
I am running in a docker container. So i rebuild the image with docker compose up --build . And then restart the frontend as well. So do I still have to initialize a new flow?
i am just trying to figure the right mental model to build the authn and authz layer by building a poc. so some terminology might be wrong from my end
b
the flow id is the UUID typically in the URL. If you make changes to the config, in most cases you also need to re-initialize a new flow
w
ok. I actually also have this golang server (acting as a bff between ory and frontend) where I am doing this.
Copy code
func startSignupFlow(w http.ResponseWriter, r *http.Request) {
	ctx := r.Context()

	flow, _, err := oryClient.FrontendAPI.CreateBrowserRegistrationFlow(ctx).Execute()
	if err != nil {
		log.Error().Err(err).Msg("failed to create registration flow")
		http.Error(w, `{"err": "registration init failed"}`, http.StatusInternalServerError)
		return
	}

	response := serializes(flow)

	w.WriteHeader(http.StatusOK)
	w.Write(response)
}
And i tried with this as well. Between two new runs of the go lang server, the flow id does change. I logged in console
in the response, (serializes flow) . that label is just ignored. the provider id is everywhere.
my dsn is memory . if that helps
b
looks like it's using the old config still, are you sure the file is correctly mounted in your docker container?
w
okay. I will fix it. minor issue. probably something is cached. but atleast thanks for confirming that its the
Label
field.
Yes, you was right. I ended up using an older container . Maaan, too silly. Thanks