Demo 地址: https://github.com/Azure-Samples/ms-identity-java-daemon 配置文件说明: # 在注册后的子系统ID:c503a451-419e-489e-b69e-101bd2511680 aad.clientId=c503a451-419e-489e-b69e-101bd2511680 # 租户ID:bdb9acc7-7e0b-482e-95b8-78aaa59f430d 为 aad.authority=https://login.microsoftonline.com/bdb9acc7-7e0b-482e-95b8-78aaa59f430d/ #注意这里取Certificates & secrets菜单下生成的value值不是secretId aad.secretKey=8lD8Q~rWFh8NwLq2Xm8hDkN0WzQsfh2y1aE6TdwE #要跳转的地址 aad.redirectUriSignin=https://localhost:8443/msal4jsample/secure/aad aad.redirectUriGraph=https://localhost:8443/msal4jsample/graph/me aad.msGraphEndpointHost=https://graph.microsoft.com/ #SSL configuration,测试时可通过jdk keytool生成 server.port=8443 server.servlet.session.cookie.secure=true server.ssl.key-store=classpath:keystore.p12 server.ssl.key-store-password=123456 server.ssl.key-store-type=PKCS12 server.ssl.key-alias=dpctest server.ssl.key-password=123456
注意事项:
使用keytool生成证书并上传到 SSL configuration