make configurable in which part of the OIDC exchange custom claims should be sent
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- php
- Domínio
- api, authentication
Direção de pesquisa
Comece pela tabela de mapeamento de atributos OIDC-to-SAML e rastreie o authorization code flow que envia custom claims para o userinfo endpoint ou para o id_token. Defina como o mapeamento oferece suporte a um padrão retrocompatível de userinfo e, em seguida, resolva como um parâmetro explícito de claims do cliente deve interagir com o destino configurado. O trabalho estará concluído quando cada custom claim configurado for roteado corretamente sem alterar os padrões existentes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
In the authorization code flow, custom claims can be sent either in the "id_token" or by querying the "userinfo".
If the client made a preference as to where the claims should be by setting the "claims parameter", the module honours this and sends accordingly.
If no preference is indicated by the client, the module currently sends custom claims always via the userinfo endpoint. As per OIDC core spec, the claims /could/ alternatively be sent directly in the id_token.
The issue at hand suggests to make configurable where a specific custom claim should be sent. The suggested place is the OIDC-to-SAML attribute mapping table, as this lists every single claim
Example, for a hypothetical custom claim "foobar":
// The default translate table from SAML attributes to OIDC claims.
ModuleConfig::OPTION_AUTH_SAML_TO_OIDC_TRANSLATE_TABLE => [
...
'foobar' => [
'attribute' => 'urn:x-randomvendor:attibute-xyz',
'dest' => 'userinfo' # or 'id_token'
],
There should be a backwards-compatible default (single-string array defaults to "userinfo", to keep the current behaviour).
An open question is how to prioritise if the client did send a claim parameter, but the configured destination differs from the configured destination - which one wins?
- Linguagem predominante
- PHP
- Estrelas
- 50
- Forks
- 28
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
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 simplesamlphp/simplesamlphp-module-oidc
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
simplesamlphp/simplesamlphp-module-oidc#360 · 1 comentário ·
-
prepared
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
simplesamlphp/simplesamlphp-module-oidc#358 · 2 comentários ·
-
ECDSA (ES256) support issues in OIDC module (JWK generation and token verification)Talvez livre de novo @cicnavi assumiu há 180 dias e não há nenhum pull request aberto. Abertaprepared
simplesamlphp/simplesamlphp-module-oidc#334 · 1 comentário · 1 responsável ·
-
Encryption key can only be stringTalvez livre de novo @cicnavi assumiu há 219 dias e não há nenhum pull request aberto. Abertaenhancement prepared
simplesamlphp/simplesamlphp-module-oidc#332 · 1 comentário · 1 responsável ·
-
ReflectionParameter::getClass() is deprecatedTalvez livre de novo @cicnavi assumiu há 234 dias e não há nenhum pull request aberto. Abertaprepared
simplesamlphp/simplesamlphp-module-oidc#327 · 2 comentários · 1 responsável ·
Todas as issues de simplesamlphp/simplesamlphp-module-oidc
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
WordPress/hosting-handbook#506 ·
Mantenedores costumam responder em até 2 dias
-
Installing a plugin with composer_packages installs dev dependencies and breaks the autoloader (Error 500)Talvez já em andamento @Boy132 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
nginx: static-file locations drop the security headers, and the dotfile deny is matched after themAbertabug Low Security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
backdrop-contrib/commerce#60 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 76/100