-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18955 from totten/5.32-oauth-return
dev/core#2141 - Tighten up new page `civicrm/oauth-client/return`
- Loading branch information
Showing
2 changed files
with
62 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,41 @@ | ||
<h3>Welcome back</h3> | ||
{if $error} | ||
<div class="crm-accordion-wrapper"> | ||
<div class="crm-accordion-header"> | ||
{ts}OAuth Error Details{/ts} | ||
</div> | ||
<div class="crm-accordion-body"> | ||
<ul> | ||
<li><strong>{ts}Error type:{/ts}</strong> {$error.error|escape:'html'}</li> | ||
<li><strong>{ts}Error description:{/ts}</strong> | ||
<pre>{$error.error_description|escape:'html'}</pre> | ||
</li> | ||
<li><strong>{ts}Error URI:{/ts}</strong> <code>{$error.error_uri|escape:'html'}</code></li> | ||
</ul> | ||
</div> | ||
</div> | ||
{else} | ||
<p>{ts}An OAuth token was created!{/ts}</p> | ||
<p>{ts}There is no clear "next step", so this may be a new integration. Please update the integration to define a next step via "hook_civicrm_oauthReturn" or "landingUrl".{/ts}</p> | ||
{/if} | ||
|
||
<h4>State:</h4> | ||
<pre>{$state}</pre> | ||
{if $stateJson} | ||
<div class="crm-accordion-wrapper collapsed"> | ||
<div class="crm-accordion-header"> | ||
{ts}OAuth State{/ts} | ||
</div> | ||
<div class="crm-accordion-body"> | ||
<pre>{$stateJson}</pre> | ||
</div> | ||
</div> | ||
{/if} | ||
|
||
<h4>Token:</h4> | ||
<pre>{$token}</pre> | ||
|
||
<h4>Error</h4> | ||
<pre>{$error}</pre> | ||
{if $tokenJson} | ||
<div class="crm-accordion-wrapper collapsed"> | ||
<div class="crm-accordion-header"> | ||
{ts}OAuth Token{/ts} | ||
</div> | ||
<div class="crm-accordion-body"> | ||
<pre>{$tokenJson}</pre> | ||
</div> | ||
</div> | ||
{/if} |