oauth-2.0

Salesforce OAuth authentication doesnt work with username and password

吃可爱长大的小学妹 提交于 2020-06-18 11:20:14
问题 I created a new connected app in salesforce I am trying to authenticate using username and password - OAuth method to fetch a token using Postman I am hitting the following endpoint https://login.salesforce.com/services/oauth2/token with my client_id, client_secret, username and password I am getting the following error: { "error": "invalid_grant", "error_description": "authentication failure" } The username and password are verified to be correct independently What am I missing here? 回答1: If

How to protect my http-triggered GCP Function with oauth/jwt?

落花浮王杯 提交于 2020-06-17 09:55:07
问题 With AWS Lambda and API Gateway, I can deploy a function exposed with http. With Cognito and API Gateway, I can protect the function with oauth2 and a jwt token. With GCP Function and the http-trigger option, I can deploy a function exposed with http. Is there a "GCP Cognito alternative" I can used to protect my function with oauth2 and a jwt token ? I have tried with "Identity Platform". I can obtain a (not jwt) token with : https://accounts.google.com/o/oauth2/v2/auth?client_id=[my client

OpenID Connect: How to add custom claims data in the client credential flow

此生再无相见时 提交于 2020-06-16 09:44:08
问题 I'm setting up a client credential flow with my identity server to get an access token from a client. I'm able to get the access token with the following code, Identity server configuration: public void Configuration(IAppBuilder app) { app.Map("/identity", idsrvApp => { var corsPolicyService = new DefaultCorsPolicyService() { AllowAll = true }; var idServerServiceFactory = new IdentityServerServiceFactory() .UseInMemoryClients(Clients.Get()) .UseInMemoryScopes(Scopes.Get()) .UseInMemoryUsers

OpenID Connect: How to add custom claims data in the client credential flow

隐身守侯 提交于 2020-06-16 09:43:46
问题 I'm setting up a client credential flow with my identity server to get an access token from a client. I'm able to get the access token with the following code, Identity server configuration: public void Configuration(IAppBuilder app) { app.Map("/identity", idsrvApp => { var corsPolicyService = new DefaultCorsPolicyService() { AllowAll = true }; var idServerServiceFactory = new IdentityServerServiceFactory() .UseInMemoryClients(Clients.Get()) .UseInMemoryScopes(Scopes.Get()) .UseInMemoryUsers

Unable to implement Google Sign-In using QOAuth2AuthorizationCodeFlow

给你一囗甜甜゛ 提交于 2020-06-13 08:20:48
问题 The issue is with redirect URIs, I don't know what to set it to. Hase ANYONE been able to figure this out? I get an error in Qt Creator's output pane that looks like this: qt.networkauth.oauth2: Unexpected call qt.networkauth.replyhandler: Error transferring https://oauth2.googleapis.com/token - server replied: Bad Request Here's my code, a function called grant() that will return true open successful authentication. The helper class OAuth2Props returns all the data from the JSON file

Securely calling a Google Cloud Function via a Google Apps Script

不羁的心 提交于 2020-06-12 09:11:57
问题 How can I securely call a Google Cloud Function via a Google Apps Script? ✅ I have a Google Cloud Function, which I can access at https://MY_REGION-MY_PROJECT.cloudfunctions.net/MY_FUNCTION , and which I would like to allow certain users to invoke via an Apps Script. ✅ To secure the Cloud Function, I have set Cloud Function Invoker to only include known email (e.g. USER@COMPANY.com , where this is a valid Google email). ✅ I am able to successfully invoke the Cloud Function via curl, while

Securely calling a Google Cloud Function via a Google Apps Script

大憨熊 提交于 2020-06-12 09:11:02
问题 How can I securely call a Google Cloud Function via a Google Apps Script? ✅ I have a Google Cloud Function, which I can access at https://MY_REGION-MY_PROJECT.cloudfunctions.net/MY_FUNCTION , and which I would like to allow certain users to invoke via an Apps Script. ✅ To secure the Cloud Function, I have set Cloud Function Invoker to only include known email (e.g. USER@COMPANY.com , where this is a valid Google email). ✅ I am able to successfully invoke the Cloud Function via curl, while

keycloak token introspection always fails with {“active”:false}

此生再无相见时 提交于 2020-06-12 04:33:45
问题 I'm kind of desesperate to make this keycloak work. I can authenticate but for some reason, my token introspection always fail. For example if I try to authenticate: curl -d 'client_id=flask_api' -d 'client_secret=98594477-af85-48d8-9d95-f3aa954e5492' -d 'username=jean@gmail.com' -d 'password=superpassE0' -d 'grant_type=password' 'http://keycloak.dev.local:9000/auth/realms/skilltrock/protocol/openid-connect/token' I get my access_token as expected: { "access_token":

AWS Cognito OAuth: Login request failure

安稳与你 提交于 2020-06-01 06:00:18
问题 I want to skip AWS Cognito's Hosted UI for login/authorization. However, when I try to consume the login end point to fetch authorization-code, I'm slapped with MethodNotAllowed response. As per AWS documentation, the login end-point accepts " Get " requests only. Based on my research on this topic, I figured it was possible to use " Post " method with login credentials for the login end point (Thanks to AWS documentation). Can someone help please me figure out the issue? AWS Pool Settings:

My GSM Gmail addon does not show the card

空扰寡人 提交于 2020-06-01 05:35:11
问题 I have built a GSM add on and published it for my domain. I built the code, on Google Apps Script and set it up in Google API Console. I installed it for my domain, but it does not show the card in Gmail It should show in the sidebar, and in the compose window. It works fine when I install the head version from within google apps script, but then I publish it to GSM for users in my organization it doesn't work. The purpose of the addon is to collect information from fields in a card and use