Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var settings = {
- method: "POST",
- url: tokenEndPoint.concat("/connect/token"),
- data: {
- username: "username",
- password: "password",
- grant_type: "password",
- client_id: "webui",
- client_secret: "32c8e1f3-594d-406a-8e33-644cfa7959c5",
- scope: "openid profile webui"
- },
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded'
- }
- };
- function onGetTokenSuccess(response) {
- return response.data;
- }
- function onGetTokenFailed(error) {
- logger.error('XHR Failed for token request.' + error);
- }
- $http(settings).then(onGetTokenSuccess).catch(onGetTokenFailed);
- [12:20:22 Information] IdentityServer4.Hosting.IdentityServerMiddleware
- Invoking IdentityServer endpoint: IdentityServer4.Endpoints.TokenEndpoint for /connect/token
- [12:20:22 Information] IdentityServer4.Validation.TokenRequestValidator
- User authentication failed: Invalid username or password.
- {
- "Enabled": "true",
- "ClientId": "webui",
- "ClientName": "Web UI",
- "ClientSecrets": [
- {
- "Description": "32c8e1f3-594d-406a-8e33-644cfa7959c5",
- "Expiration": "",
- "Type": "SharedSecret",
- "Value": "Q3ADcd+nptsnMpvXvCMvquwFd8i26ImBsncNGg/UG/w="
- }
- ],
- "UserClaims": [
- "role"
- ],
- "AllowedGrantTypes": [
- "password"
- ],
- "AllowedScopes": [
- "openid",
- "profile",
- "webui"
- ]
- }
Add Comment
Please, Sign In to add comment