# Auth0 + PHP Web App Sample
This sample demonstrates how to add authorization to a [PHP](http://php.net/) web app using [Auth0](https://auth0.com).
Check the [PHP Quickstart](https://auth0.com/docs/quickstart/webapp/php) to better understand this sample.
## Getting Started
Before starting, make sure you have `composer` and `php` installed.
Copy the `.env.example` file to `.env` and populate it with your app's Domain, Client ID, and Client Secret. These can be retrieved from your [Auth0 dashboard](https://manage.auth0.com).
## Running the App
```bash
composer install
php -S localhost:3000
```
The app will be served at [http://localhost:3000/](http://localhost:3000/).
## Running the App With Docker
Before starting, make sure you have `docker` installed.
Rename the `.env.example` file to `.env` and populate it like explained [previously](#getting-started).
Execute in command line `sh exec.sh` to run the Docker in Linux, or `.\exec.ps1` to run the Docker in Windows.
The app will be served at [http://localhost:3000/](http://localhost:3000/).
## Create a free account in Auth0
1. Go to [Auth0](https://auth0.com) and click Sign Up.
2. Use Google, GitHub or Microsoft Account to login.
## Vulnerability Reporting
Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
## What is Auth0?
Auth0 helps you to easily:
- implement authentication with multiple identity providers, including social (e.g., Google, Facebook, Microsoft, LinkedIn, GitHub, Twitter, etc), or enterprise (e.g., Windows Azure AD, Google Apps, Active Directory, ADFS, SAML, etc.)
- log in users with username/password databases, passwordless, or multi-factor authentication
- link multiple user accounts together
- generate signed JSON Web Tokens to authorize your API calls and flow the user identity securely
- access demographics and analytics detailing how, when, and where users are logging in
- enrich user profiles from other data sources using customizable JavaScript rules
[Why Auth0?](https://auth0.com/why-auth0)
## License
This project is licensed under the MIT license. See the [LICENSE](https://github.com/auth0-samples/auth0-php-web-app/blob/master/LICENSE) file for more info.
没有合适的资源?快使用搜索试试~ 我知道了~
auth0-php-web-app:PHP Web应用程序的Auth0集成示例
共20个文件
php:4个
md:2个
yml:2个
1星 需积分: 0 1 下载量 110 浏览量
2021-02-06
02:35:10
上传
评论
收藏 16KB ZIP 举报
温馨提示
Auth0 + PHP Web App示例 此示例演示如何使用向 Web应用添加授权。 查看以更好地理解此示例。 什么是Auth0? Auth0可帮助您轻松: 与多个身份提供商(包括社交网站(例如Google,Facebook,Microsoft,LinkedIn,GitHub,Twitter等)或企业(例如Windows Azure AD,Google Apps,Active Directory,ADFS,SAML等)一起实施身份验证 使用用户名/密码数据库,无密码或多因素身份验证登录用户 将多个用户帐户关联在一起 生成签名的JSON Web令牌以授权您的API调用并安全地传递用户身
资源详情
资源评论
资源推荐
收起资源包目录
auth0-php-web-app-master.zip (20个子文件)
auth0-php-web-app-master
.github
stale.yml 980B
CODEOWNERS 34B
LICENSE 1KB
00-Starter-Seed
composer.json 453B
index.php 2KB
.htaccess 117B
composer.lock 33KB
exec.sh 128B
dotenv-loader.php 355B
Dockerfile 331B
.env.example 144B
login.php 359B
.gitignore 12B
.dockerignore 54B
public
app.css 2KB
exec.ps1 108B
README.md 2KB
logout.php 523B
.circleci
config.yml 2KB
README.md 2KB
共 20 条
- 1
信徒阿布
- 粉丝: 41
- 资源: 4576
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- GJB150A-2009军用装备实验室环境试验方法(共19份标准文件)
- 浩辰CAD看图王8.6.0最新版本下载,轻量化CAD看图软件,无需下载专业CAD软件,即可实现CAD看图、CAD图纸编辑、格式转换、三维览图等
- SW materials
- 英雄联盟评论数据集和停用词表
- 整合Springboot shiro jpa mysql 实现权限管理系统(附源码地址)
- 微信小游戏小鸟飞行游戏
- 20190313-100538-非对称电容在变压器油中10kv高压电作用下产生力的现象
- GB材料数据库(!请注意鉴别其中的材料参数并不是完全正确!)
- JAVA商城,支持小程序商城、 供应链商城 小程序商城 H5商城 app商城超全商城模式官网 支持小程序商城 H5商城 APP商城 PC商城
- springboot的在线商城系统设计与开发源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1