Questions tagged [auth-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 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
113 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
52 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 ...
5
votes
0answers
55 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
21 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(...
0
votes
0answers
47 views

Managing per-user Named Credential instances for access to 3rd party apps via an Auth Provider

Context Let's say we have an Auth.Provider with Microsoft Access Control Service in place + a Named Credential set with Per User + OAuth 2.0 and the previous Auth. Provider set. Then I set the proper ...
1
vote
1answer
70 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 ...
2
votes
3answers
236 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
67 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://...
0
votes
0answers
21 views

Two factor authentication for external identity user [duplicate]

I'm looking for use standard two factor authentication (using Salesforce authentication app) for user with the External Identity licence but I don't find anything, is it possible? Are there any other ...
3
votes
0answers
80 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. ...
0
votes
0answers
38 views

need to update Auth provider from apex class

I have requirement where i need to update authProvider Execute as User from Apex code. I have wirtten a code but i am facing below error on update **DML operation Update not allowed on AuthProvider** ...
0
votes
0answers
29 views

SSO for External OAuth 2.0 Provider - NO_ACCESS User+was+a+portal+user

I configured Single-Sign-On for my application through OAuth 2.0. Plugin class works well, salesforce gets all required infromation. RegistrationHandler -> createUser is perfomed and a new user is ...
1
vote
1answer
95 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
0answers
16 views

Incorrect redirect URL is set when using Custom domain, Auth provider(Google) for Community

I am having issues in setting up one of the social sign on using google auth provider for our community so that I can create the community users. I have followed all the steps provided by Salesfroce ...
0
votes
1answer
96 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 ...
0
votes
0answers
85 views

How to pass custom/dynamic request parameter to salesforce single sign on initialization url?

I am working on implementing single sign on using Salesforce Auth. Providers. I am integrating it with IdentityServer 4 using Open ID connect method. I have need to pass additional "launch" request ...
2
votes
2answers
101 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 ...
0
votes
0answers
64 views

REST API Callout with Named Credentials not refreshing token?

I am making a call from my org to the REST API of another org to pull in some data from the chatter feed API. I set up a connected app on the org of the API I am using. It is using the OAuth scopes (...
0
votes
0answers
66 views

SSO via Azure as an auth provider - avoiding errors in registration handler

I am trying to SSO into Salesforce via auth provider (Azure). It works when I log in for the first time, but afterwards [Third-Party Account Link] record will be created and the following error will ...
5
votes
1answer
795 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
180 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
164 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
45 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
50 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
153 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
45 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
68 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
591 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
145 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
152 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
1k 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
153 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
1k 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
60 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
217 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
481 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 ...
-1
votes
1answer
932 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 ...
0
votes
2answers
742 views

How is named credentials & auth provider with connected app used? Can i have scenario where it is needed?

I have seen people use auth. providers that has client secret and id of connected app and authenticated using named credentials. The named credentials stores the oauth refresh token but I am not ...
2
votes
3answers
2k views

Oauth 2.0 Client Credentials - Custom Auth Provider

I am building out a Salesforce Connect customer adapter to translate rest responses into external data objects. To authenticate these requests, I would like to use Oauth 2.0's client credentials flow ...
3
votes
1answer
1k views

Custom OAuth Auth Provider

I have a Rest API Endpoint that I am looking to callout to. Something like this: https://myrestservice.com/service/logs When setting up the Named Credential, I set up the URL to: https://...
7
votes
0answers
237 views

What is the proper approach for deploying custom Auth. Provider in Salesforce DX?

I have a custom Auth. Provider and a couple of Named Credential which use it. The auth. provider metadata requires "Execute As" field which is represented as username in metadata and as you know, ...
2
votes
0answers
3k views

We can’t log you in because of an authentication error. For help, contact your Salesforce administrator

We are trying to implement custom auth provider to facilitate users from a different domain can log into Salesforce with domain credentials. Flow:- 1.User will login to web application with domain ...
2
votes
0answers
35 views

Can Social Logon be used directly from a native mobile app?

We have a Customer Community with Facebook and Google set up as Auth Providers. In addition, we have a mobile app that connects to Salesforce using OAuth towards this community. This all works fine. ...
4
votes
0answers
112 views

Setting up Marketing Cloud as an Auth. Provider

Lately we've been integrating very tightly with Marketing Cloud, so I thought about trying to set up the External Services which Salesforce provides in order to do some minor actions via flows. In ...
5
votes
1answer
2k views

error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration

I am connecting two salesforce orgs with connected app, named credential and Auth Provider. I have created connected app in target sandbox. Created Auth Provider in source org by providing Consumer ...
1
vote
1answer
386 views

Allow all Users to access specific User's token from Auth. Provider

I've created an Auth. Provider for Microsoft SharePoint and after visiting the OAuth-Only Initialization URL and running a callout using that Auth. Provider, everything works as expected. I've ...
0
votes
1answer
460 views

How to prevent auto login (using auth provider) after logout from SF org?

My domain is setup. Auth provider is setup. For Authentication Configuration only Auth Provider is selected for Auth Service. When I go to https://mydomain.my.salesforce.com/ I'm presented with Auth ...
0
votes
1answer
974 views

Refresh token - Rest Integration Salesforce

I have been googling a lot about the fact how to get a refresh token. I have rest integration between salesforce to salesforce and it is working fine. After few hours not using the service I get this ...
0
votes
2answers
399 views

Dynamic Query Parameters in Auth Provider Endpoint

I am setting up an Auth Provider with an external service that implements OpenID Connect. Their endpoint requires a query parameter because their system uses tenant databases, and their users are not ...