kryll13/sso
Composer 安装命令:
composer require kryll13/sso
包简介
Office365 SSO
关键字:
README 文档
README
Thanks to stevenmaguire/oauth2-microsoft library.
Install with Composer :
composer require kryll13/sso
Before using it
You must have :
- an Office 365 subscription,
- created an App in Azure Active Directory,
- set the URL app,
- set the redirect URL to process the token,
- the client's app ID,
- and the client's app secret.
Setup
Add those entries in the .env file and replace examples with your data.
APP_URL="https://app.example.com"
TENANT_ID="........-....-....-....-............"
APP_ID="........-....-....-....-............"
APP_SECRET="app_secret"
REDIRECT_URI="https://app.example.com"
AUTHORITY_URL="https://login.microsoftonline.com"
AUTHORITY_ENDPOINT_PATH="/oauth2/v2.0/authorize"
AUTHORITY_TOKEN_PATH="/oauth2/v2.0/token"
SCOPES="openid profile offline_access user.read"
AUTHORITY_LOGOUT_PATH="/oauth2/v2.0/logout?post_logout_redirect_uri="
Usage
Instantiate Office365 class and call methods.
- login
- logout
- getUser
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: CC-BY-NC-SA-4.0
- 更新时间: 2019-07-20