Gebruik het OAuth 2.0 echo-eindpunt om de ontwikkeling te vereenvoudigen wanneer u de stroom Autorisatiecode- en inloggegevens configureert voor openbare clients, zoals apps van één pagina. U kunt dit eindpunt ook gebruiken voor variaties van de stroom Autorisatiecode- en inloggegevens, inclusief headless registratie, inloggen zonder wachtwoord en gastgebruikersstromen.
Vereiste editions
Beschikbaar in: Salesforce Classic (niet in alle organisaties beschikbaar) en Lightning Experience
Beschikbaar in: Enterprise, Unlimited en Developer Edition
Het echo-eindpunt is beschikbaar voor Experience Cloud-sites op https://MyExperienceCloudSite.my.site.com/services/oauth2/echo, waarbij https://MyExperienceCloudSite.my.site.com uw Experience Cloud-domein is. Dit eindpunt ondersteunt Cross-Origin Resource Sharing (CORS).
Tijdens de stroom Autorisatiecode- en inloggegevens retourneert Salesforce een 302-omleiding naar een vooraf geconfigureerde URL die de autorisatiecode bevat, samen met andere parameters. Het eindpunt /services/oauth2/echo vergemakkelijkt het ophalen van de code door deze URL-parameters in JSON-indeling te retourneren. In de volgende stap van de stroom wisselt u de code in voor een toegangstoken. Gebruik dit eindpunt voor gebruikscases waarin u het gehele headless inlogproces wilt voltooien, inclusief de tokenuitwisseling.
Als u dit eindpunt wilt gebruiken, configureert u https://MyExperienceCloudSite.my.site.com/services/oauth2/echo als uw callback-URL, die u als redirect_uri gebruikt wanneer u de stroom instelt.
Hier is een voorbeeld-URL die het eindpunt accepteert als invoer.
Laat ons weten wat we kunnen doen om te verbeteren!
Wordt geladen
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.