Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mefarazath/sample-basic-auth
https://github.com/mefarazath/sample-basic-auth
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mefarazath/sample-basic-auth
- Owner: mefarazath
- License: apache-2.0
- Created: 2019-06-04T09:59:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T10:08:09.000Z (over 5 years ago)
- Last Synced: 2024-11-08T14:59:41.517Z (2 months ago)
- Language: Java
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Custom Basic Authenticator Samples
1. mvn clean install
2. Copy components/org.wso2.carbon.identity.application.authenticator.basicauth.custom/target/org.wso2.carbon.identity.application.authenticator.basicauth.custom-6.0.9-SNAPSHOT.jar to IS_HOME/repository/components/dropins
3. Copy resources/login.jsp IS_HOME/repository/deployment/server/webapps/authenticationendpoint/Configuring
* Custom Basic Request Path Authenticator
![Alt text](resources/basic-requestpath.png?raw=true "Custom Basic Authenticator")* Custom Basic Authenticator
![Alt text](resources/basic-auth.png?raw=true "Custom Basic Request Path Authenticator")Sample Requests
1. Custom Basic Request Path Authenticator (Credentials sent in the Basic Auth header in request)` curl -k -v --user admin:admin https://localhost:9443/oauth2/authorize?response_type=code&client_id=H4nlWzP11x_DwtgavojIAW5sYnUa&redirect_uri=https://localhost/callback&scope=openid
`2. Custom Basic Authenticator
`https://localhost:9443/oauth2/authorize?response_type=code&client_id=11FIYleecll80kNUB3ENnjJ26dMa&redirect_uri=https://localhost/callback&scope=openid`