Compare commits
2 Commits
63ec38ac6d
...
7cd3fcb12c
Author | SHA1 | Date | |
---|---|---|---|
7cd3fcb12c | |||
eceba1da4b |
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
@ -12,10 +12,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@v4
|
||||||
with:
|
with:
|
||||||
name: spruceid/siwe_oidc
|
name: nathanwoodburnwoodburn/eth-oidc
|
||||||
username: ${{ github.actor }}
|
username: nathanwoodburn
|
||||||
password: ${{ secrets.DOCKERGIT_TOKEN }}
|
password: ${{ secrets.DOCKERGIT_TOKEN }}
|
||||||
registry: git.woodburn.au
|
registry: git.woodburn.au
|
||||||
tag_names: true
|
tag_names: true
|
||||||
|
@ -146,6 +146,7 @@ pub fn metadata(base_url: Url) -> Result<CoreProviderMetadata, CustomError> {
|
|||||||
CoreClaimName::new("iss".to_string()),
|
CoreClaimName::new("iss".to_string()),
|
||||||
CoreClaimName::new("preferred_username".to_string()),
|
CoreClaimName::new("preferred_username".to_string()),
|
||||||
CoreClaimName::new("picture".to_string()),
|
CoreClaimName::new("picture".to_string()),
|
||||||
|
CoreClaimName::new("email".to_string()),
|
||||||
]))
|
]))
|
||||||
.set_registration_endpoint(Some(RegistrationUrl::from_url(
|
.set_registration_endpoint(Some(RegistrationUrl::from_url(
|
||||||
base_url
|
base_url
|
||||||
@ -238,6 +239,7 @@ async fn resolve_claims(
|
|||||||
Ok(n) => resolve_avatar(eth_provider.clone(), &n).await,
|
Ok(n) => resolve_avatar(eth_provider.clone(), &n).await,
|
||||||
Err(_) => None,
|
Err(_) => None,
|
||||||
};
|
};
|
||||||
|
let email = format!("{}@{}", address, base_url.host_str().unwrap());
|
||||||
StandardClaims::new(subject_id)
|
StandardClaims::new(subject_id)
|
||||||
.set_preferred_username(Some(EndUserUsername::new(username)))
|
.set_preferred_username(Some(EndUserUsername::new(username)))
|
||||||
.set_picture(avatar.map(|a| {
|
.set_picture(avatar.map(|a| {
|
||||||
|
Loading…
Reference in New Issue
Block a user