Questions tagged [auth-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
0answers
17 views

SSO in community navigating to the home page by default after authenticating successfully

We have implemented a Google SSO for the Salesforce community. Everything is working fine with respect to the SSO. Whereas, after getting authenticated successfully, I am getting navigated to the home ...
-2
votes
0answers
27 views

sending login_hint to authentication provider from Salesforce [closed]

We have configured auth provider in Salesforce with Okta as the Id provider. The request from Salesforce should look like below https://<IdPURL>/oauth2/v1/authorize?response_type=code&...
0
votes
1answer
59 views

OpenID Connect AWS Cognito - ERROR: No_OpenId_Response

Overview Currently using AWS Cognito User Pools as Identity Provider using OpenID Connect for logging in a Salesforce Community. I'm currently getting a similar issue with this post OpenID Connect - ...
0
votes
0answers
34 views

Named Credential Authentication Error

I am trying to connect with Named Credentials. I am using oAuth2.0 authentication protocol. I have created a connected app ,Auth Provider and Named credentials as shown in the image below Error, the ...
1
vote
0answers
29 views

Custom Auth provider - pass data to `getUserInfo` from `handleCallback`

I have a custom Auth Provider used by Connected App where the data that salesforce expects to be returned in the getUserInfo method is actually sent along with the OAUTH2 state (that data is coming ...
1
vote
0answers
35 views

Setting up Auth Provider with SSO

I am calling a REST API using Auth provider and Named credential, but the client wants to use their IDP SSO instead of using API credentials. Is there a way we can configure an SSO with Auth Provider ...
0
votes
0answers
19 views

Custom oAuth provider Plugin class initiate method

I need to call the initiate() method again from handlecallback() method. Is there any way I can do that? Why i am doing this: I have an integration between sfdc and azure ad, using oAuth2.0. I have ...
0
votes
1answer
85 views

Auth Provider Callback masking ErrorDescription

we have Azure as Auth Provider for our community users. For some reason whenever Auth flow is interrupted in Azure, SF masks result in callback call and error_description is removed. Because of this, ...
0
votes
0answers
42 views

Named credential using OpenId Auth Provider

Is it possible to setup Named Credentials for following type of OAuth provider? I tried configuration named credential and Auth Provider (using OpenId) but unable to authenticate successfully. "...
0
votes
1answer
92 views

In need of assistance with writing a Registration Handler Test Class

I am in need of assistance here. Trying to implement a Registration Handler test class for production deployment, I don't seem to get the test class working, nor do I really know how to write tests. ...
0
votes
0answers
49 views

Salesforce to Azure AD named credential failing after access token expires

Sf azure:Refresh token exchange to renew access token process (not working) I am facing an issue where I have a named credential configured in Salesforce using auth provider (using openid connect for ...
0
votes
0answers
107 views

Decode Access and ID token recieved from 3rd party system in Salesforce Apex

We receive access token in Salesforce apex from 3rd party system (AWS Cognito) using a custom Auth. provider. I need to inspect the access and Id token to make sure that the tokens are valid and have ...
0
votes
0answers
10 views

AuthProviderPluginClass - Why does the methods do not require override keyword?

AuthProviderPluginClass is an abstract class. Are the methods like- getCustomMetadataType(),initiate() abstract methods? If yes, why they do not need the override keyword. If no, what is the need to ...
0
votes
0answers
47 views

Named Credentials redirects to login page after successful callout

I have implemented Named Credential to integrate b/w Sales and Service orgs with the guidance from this website (Salesforce to Salesforce integration) and able to successfully integrate the orgs. ...
0
votes
2answers
780 views

Named Credential shows Authentication Status Pending even after successful authentication

I am trying to setup oAuth between salesforce and Workday. I created a Auth provider and a named credential as shown in the screenshots. Named credential] Auth Provider I checked 'Start ...
0
votes
0answers
94 views

How does stateToPropagate work when extending Auth.AuthProviderPluginClass

I have created an apex class that extends the Auth.AuthProviderPluginClass. Everything is working but I have a requirement to pass "language":"fr" or "language":"en&...
2
votes
0answers
214 views

Help setting up Marketing Cloud REST API as an External Service in Salesforce

I'm want to use External Services in salesforce to call the Marketing Cloud REST API in a flow. I've done some digging on this and think the steps to do this are: Setup an Auth Provider Setup and ...
1
vote
1answer
139 views

Generate JWT token for external app - SSO

We are setting up a Salesforce Community and our community members should be able to automatically login using the credentials from an extenal platform when clicking on a link from this platform. I'm ...
10
votes
1answer
1k views

Custom REST controller to access Auth.AuthToken.getAccessToken returning null

Following on from a previous question: How to access OAuth Token stored in NamedCredential using Apex for use in other third party application I've created a custom REST endpoint which proxies ...
1
vote
1answer
225 views

How to access OAuth Token stored in NamedCredential using Apex for use in other third party application

I'd like to use the native Salesforce Auth. Provider and Named Credential capabilities to allow a Salesforce user to follow the OAuth flow to authenticate against a 3rd party service, and then later ...
0
votes
0answers
45 views

Custom Merge Field Named Credential Apex

I am integrating with GoToWebinar using a Named Credential to make Apex Callouts. While the Authentication piece is working well, during the Callback to get the access token, there are some additional ...
3
votes
1answer
358 views

Why can't we package custom AuthProvider in Managed Package

My Managed Package app connects to an external REST API. This API uses OAuth2. For easy connectivity, I planned on packaging a custom AuthProvider with all the app-specific settings like URLs and ...
1
vote
1answer
513 views

How does a Named Credential with a custom Auth. Provider check token validity?

When using a custom OAuth 2.0 provider as an extension of AuthProviderPluginClass for a Named Credential how does Salesforce check whether the current token is valid before attempting to request a new ...
8
votes
0answers
282 views

Manually Invoke Refresh on Custom AuthProviderPluginClass

I have recently implemented a custom auth plugin provider in hopes of getting away from making a token call with every request OR having to manage the token myself. I am using the Oauth 2.0 client ...
0
votes
1answer
39 views

AuthToken using Open Id Connect

We use a third party provider for SSO using OpenId Connect. We use the accessToken for the logged in user when making API calls for user session validation. When we do an Auth.AuthToken.getAccessToken(...
2
votes
1answer
495 views

Problem passing error from Auth.RegistrationHandler

I’m creating a new community without self registration. My goal is to have users who already have a specified profile be able to login using LinkedIn as an Authentication provider. I’ve got ...
3
votes
3answers
877 views

How to integrate JIRA with salesforce using OAuth 2.0 [closed]

I am banging my head against the wall from the last couple of weeks to just set up the authentication between JIRA cloud and salesforce, I didn't get any proper documentation to create a connected ...
3
votes
1answer
132 views

Adding extra parameters to Auth Provider URLs

Is it possible to add extra parameters to the auto generated SF URLs in Auth. Provider? To be more clear, here's an example: We have an Auth. Provider with an auto generated URL(let's say https://...
3
votes
0answers
270 views

Debugging AuthProvider

I am now working on an implementation of an external authentication for SF. I am following this guide and so far I was able to define and set up the initiate() method and redirect to the correct URL. ...
1
vote
1answer
250 views

Salesforce internal server error - SSO through OAuth 2.0 external provider

I am configuring Single Sign On for my application through OAuth 2.0 server. I used the next recommendations: https://help.salesforce.com/articleView?id=sso_provider_plugin_custom.htm&type=5#...
0
votes
1answer
285 views

External Services, Named Credentials, and Google Identity Aware Proxy (IAP)

I have a Swagger/OpenAPI API running on Google App Engine behind Google's Identity Aware Proxy. I can hit the URLs directly, which causes a normal authentication flow and authenticates me using my ...
2
votes
2answers
188 views

Can we delete authProvider from APEX

I am trying to delete an authProvider from APEX. authProvider provider = [SELECT Id FROM authProvider WHERE DeveloperName = 'a_known_string']; delete provider; I get an error that states DML ...
5
votes
1answer
2k views

Authorize Apex Rest API call using an Azure token

I'm new to the OAuth concept in Salesforce and looking for some pointers for my use-case. I'm not even sure if I'm framing my question correctly, but I'm trying to understand if I can invoke an Apex ...
5
votes
1answer
254 views

"Decryption Exception" errors on Named Credential

I have callouts that use a Named Credential and a Custom Oauth2 Auth Provider fail with this error response: Invalid parameter value "[hidden]" for parameter "Decryption Exception" A similar ...
0
votes
0answers
446 views

Registration Handler - determining which Auth Provider was used to sign in

We have many Auth Providers (all based on OpenID Connect) we are using to SSO into a Salesforce community. In order to add some logic to the Registration Handler that checks if a user already exists ...
0
votes
1answer
68 views

Can we avoid navigating to Azure Ad login screen when we configure SSO with Azure AD as ID provider

I have to configure Single Sign using Azure AD for our salesforce community as Identity provider and Salesforce being the service provider, I want to use Open id Connect. I want check with the forum ...
0
votes
1answer
80 views

Can Protected Managed Package Custom Settings be used to store OAuth2.0 Credentials from a Custom Auth Provider?

Background: I have created a custom Auth. Provider in Salesforce to reach out to an authorization server that isn't on the default list of Provider Types. I used https://developer.salesforce.com/docs/...
2
votes
1answer
324 views

Overriding the final destination of the OAuth2.0 flow from a custom OAuth2.0 Auth provider

Background: I have created a custom Auth. Provider in Salesforce to reach out to an authorization server that isn't on the default list of Provider Types. I used https://developer.salesforce.com/docs/...
1
vote
0answers
48 views

OAuth Flow required every day. Otherwise Callout fails with 401

In a customer org, Api calls are made using a NamedCredential using an OpenIdConnect AuthProvider. I didn't configure this but my own code fails with 401 Unauthorized. When I going to the ...
1
vote
0answers
94 views

Authentication providers on a custom community login page

We have defined custom Auth. Providers (like for facebook or google or itsme) and would like to expose them to my visualforce community. On this community we have implemented a custom login page (...
4
votes
2answers
837 views

sfdx force:source:pull -> Entity of type 'AuthProvider' named '' cannot be found

I am trying to do a sfdx force:source:pull from a scratch org where I defined and authenticated a Named Credential and Auth Provider (OAuth2 Named Principal). I get: • RetrieveFailed - Entity of ...
2
votes
1answer
361 views

Validate jwt token inbound webservice

We have a requirement to validate jwt tokens for inbound webservices: In Salesforce we will expose some REST WS 3rd party system will call salesforce with a jwt token* in the Authorization header *...
10
votes
1answer
166 views

Did Summer 19 break NamedCredentials using Auth. Provider in Sandboxes

This weekend some of our sandboxes was upgraded to summer 19. before that we were able to query consumer secret from the Auth. Provider used in the named credentials. After the summer release we are ...
4
votes
1answer
2k views

Connect to Salesforce production REST API from Sandbox using Named Credentials

Background I would like to connect to the REST API of a production org, from a sandbox org. Configuration so far: Production Org has a Connected App Sandbox Org has a Auth. Provider Sandbox Org has ...
0
votes
1answer
180 views

Login to OpenCTI softphone through the custom auth provider

I'm working under our solution of the Softphone using OpenCTI. Now I need to authenticate our customer's users through our OAuth2 provider. How I understood the best practice for using external ...
0
votes
1answer
2k views

Named credential for gotoWebinar app (oauth v2.0)

Is it possible? My steps: Create the app in the Developer Center. On the Application URL I left the suggestion https://api.getgo.com (I guess this could be an issue, do I have to fill this with a ...
1
vote
0answers
72 views

Setting up an external OIDC auth provider with Salesforce

I have always integrated a SAML IDP with Salesforce and I'm trying OIDC now. I have created a Salesforce OIDC app in my IDP. I took the clientID and clientSecret, and then created a Auth. Provider in ...
0
votes
1answer
311 views

OpenId access token does not work for rest api

I want to use OpenId for Salesforce authentication. I have done the following: created an auth provider (like in this tutorial: https://help.salesforce.com/articleView?id=sso_provider_sfdc.htm&...
0
votes
1answer
871 views

Redirect to Authentication Provider Page instead of salesforce login page

I have created an open id connection between external authentication provider and salesforce. Now the requirement is when my domail url is entered in browser, it has to redirect to authentication ...
0
votes
1answer
2k views

Users need to login using External Authentication Provider [duplicate]

I have a requirement where users need to log in to salesforce using external authentication provider. The configuration in Open-id authentication. I have created the connection in Auth.Providers along ...