server: accept sign-in tokens from more than one OIDC issuer
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript, openapi
- Domínio
- authentication, backend-api-design
Direção de pesquisa
Start with packages/pivotkit-server/src/options/http.js and read the existing auth.issuer and tokenUrl handling. First verify whether the identity provider supports RFC 8693 exchange with a subject token from another provider and whether PowerShell Universal passes the user's access token to a script; the issue says exchange routing depends on those findings. Done means supporting issuer-specific audiences, scopes and keys, routing exchanges to the issuing issuer, restricting which issuers each source may exchange, and preserving auth.issuer compatibility.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
pivotkit-server accepts sign-in tokens from one OIDC issuer (auth.issuer). Authentik gives each provider an issuer of its own by default. So a server that should accept tokens from two Authentik providers needs one of these today:
- Authentik reconfigured to "issuer mode: global", with both providers signing with the same key;
- or every client on one provider.
A typical case: PowerShell Universal passes on its user's token from its own provider, and Claude Code signs in through a second, public client.
Proposal: auth.issuers, a list of issuers.
- Each issuer has its own audience, required scopes and key set (
jwksUrior discovery). - A token exchange (
sources.<id>.http.auth.tokenExchange) goes to the token endpoint of the issuer that issued the subject token, not always toauth.issuer's. TodaytokenUrldefaults toauth.issuer's token endpoint (packages/pivotkit-server/src/options/http.js). - A source names the issuers whose tokens it may exchange. A token from another issuer is never passed on to that backend.
- The docs recommend a pivotkit scope of its own per issuer (
requiredScopes). If the audience is another application's client ID, every token issued to that application would otherwise be valid at pivotkit. auth.issuerkeeps working as the one-issuer form.
Before building it, check:
- whether the identity provider accepts a token exchange (RFC 8693) with a subject token from another provider;
- whether PowerShell Universal hands the signed-in user's access token to a script.
The design of the exchange routing depends on what that check shows.
Related: #441, a download sign-in with an issuer of its own.
- Linguagem predominante
- JavaScript
- Estrelas
- 1
- Forks
- 1
- Merge médio
- 3h 21min
- PRs com merge (30d)
- 250
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de eizedev/pivotkit
-
accessibility area:react bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
area:tests
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
area:cli bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Mantenedores costumam responder em até 1 dia
-
area:cli enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
area:react enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
Todas as issues de eizedev/pivotkit
Issues semelhantes
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
blixvip/solana-tx-parse#18 ·
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
blixvip/solana-rpc-bench#18 ·
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100