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

Is tokenURL being called? #46

Closed
philsmart opened this issue Sep 24, 2024 · 4 comments
Closed

Is tokenURL being called? #46

philsmart opened this issue Sep 24, 2024 · 4 comments

Comments

@philsmart
Copy link

Hi @bvandersloot-mozilla,

I am playing around with this (thanks). I am storing a credential as follows:

 navigator.credentials.store(
          new IdentityCredential({
            id: "person",
            token: JSON.stringify({user: "phil"}),
            effectiveOrigins: ["http://rp.localhost:8080"],
            tokenURL: "http://idp.localhost:8080/idp/assertion",
            uiHint: {
              name: "person",              
              expiresAfter: 60000,
            },
          }));

Then retrieving it on the RP with:

navigator.credentials
          .get({
            identity: {
              providers: [
                {
                  origin: "http://idp.localhost:8080",
                  loginURL: "http://idp.localhost:8080/idp/idplw"
                },
              ],
            },
          })

But I can not see how or when the tokenURL gets called. I guessed it might get called once I selected the identity credential from the chooser, but I can not see it happening.

Maybe it is just how I am implementing it.

@ekovac
Copy link
Contributor

ekovac commented Sep 24, 2024

I don't think the prototype in Firefox nightly is actually up to date with the recent changes to the explainer yet.

@ekovac
Copy link
Contributor

ekovac commented Sep 24, 2024

The testing websites linked here: #33 should work in Firefox Nightly but don't represent the latest state of the explainer.

@philsmart
Copy link
Author

No problems. Thanks.

@philsmart
Copy link
Author

I'll close this, I can track #51 and #42.

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

No branches or pull requests

2 participants