Compare commits

...

2 Commits

Author SHA1 Message Date
7cd3fcb12c
fix: Update container repo info 2025-02-14 13:03:48 +11:00
eceba1da4b
feat: Try adding a temp email 2025-02-14 12:45:07 +11:00
2 changed files with 5 additions and 3 deletions
.github/workflows
src

View File

@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Build and push image
uses: elgohr/Publish-Docker-Github-Action@master
uses: elgohr/Publish-Docker-Github-Action@v4
with:
name: spruceid/siwe_oidc
username: ${{ github.actor }}
name: nathanwoodburnwoodburn/eth-oidc
username: nathanwoodburn
password: ${{ secrets.DOCKERGIT_TOKEN }}
registry: git.woodburn.au
tag_names: true

View File

@ -146,6 +146,7 @@ pub fn metadata(base_url: Url) -> Result<CoreProviderMetadata, CustomError> {
CoreClaimName::new("iss".to_string()),
CoreClaimName::new("preferred_username".to_string()),
CoreClaimName::new("picture".to_string()),
CoreClaimName::new("email".to_string()),
]))
.set_registration_endpoint(Some(RegistrationUrl::from_url(
base_url
@ -238,6 +239,7 @@ async fn resolve_claims(
Ok(n) => resolve_avatar(eth_provider.clone(), &n).await,
Err(_) => None,
};
let email = format!("{}@{}", address, base_url.host_str().unwrap());
StandardClaims::new(subject_id)
.set_preferred_username(Some(EndUserUsername::new(username)))
.set_picture(avatar.map(|a| {