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:
|
||||
- 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
|
||||
|
@ -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| {
|
||||
|
Loading…
Reference in New Issue
Block a user