Skip to content

Commit

Permalink
Fix issue of requesting photo failure (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivershen-wow authored Mar 2, 2023
1 parent 3c9a29f commit 8cb22e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions center/application-sample.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
spring:
security:
oauth2:
enabled: false
client:
provider:
azure-ad:
authorization-uri: https://login.microsoftonline.com/${MICROSOFT_PROVIDER_TENANT_ID}/oauth2/v2.0/authorize
token-uri: https://login.microsoftonline.com/${MICROSOFT_PROVIDER_TENANT_ID}/oauth2/v2.0/token
jwk-set-uri: https://login.microsoftonline.com/${MICROSOFT_PROVIDER_TENANT_ID}/discovery/v2.0/keys
photo-uri: https://graph.microsoft.com/v1.0/me/photo/$value
registration:
azure-client:
provider: azure-ad
client-id: ${MICROSOFT_PROVIDER_CLIENT_ID}
client-secret: ${MICROSOFT_PROVIDER_AUTHENTICATION_SECRET}
authorization-grant-type: authorization_code
redirect-uri: ${MICROSOFT_RERIRECT_URL}
ignore-uri: '/api/auth,/agent/connect'
scope: 'https://graph.microsoft.com/User.Read'

app:
# Mail Address Format
Expand Down
1 change: 1 addition & 0 deletions center/src/main/resources/application-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spring:
authorization-uri: https://login.microsoftonline.com/${MICROSOFT_PROVIDER_TENANT_ID}/oauth2/v2.0/authorize
token-uri: https://login.microsoftonline.com/${MICROSOFT_PROVIDER_TENANT_ID}/oauth2/v2.0/token
jwk-set-uri: https://login.microsoftonline.com/${MICROSOFT_PROVIDER_TENANT_ID}/discovery/v2.0/keys
photo-uri: https://graph.microsoft.com/v1.0/me/photo/$value
registration:
azure-client:
provider: azure-ad
Expand Down

0 comments on commit 8cb22e2

Please sign in to comment.