Created
September 10, 2019 04:04
-
-
Save gunnala-sri/b02b57611ea433aad312afe1cca39d1a to your computer and use it in GitHub Desktop.
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
public IActionResult OnPost() | |
{ | |
var request = HttpContext.Request; | |
if (!ModelState.IsValid) | |
{ | |
return Page(); | |
} | |
//https://pitangui.amazon.com/spa/skill/account-linking-status.html?vendorId=M2AAAAAAAAAAAA#state=xyz&access_token=2YotnFZFEjr1zCsicMWpAA&token_type=Bearer | |
var url = request.Query["redirect_uri"] + "#state=" + request.Query["state"] + "&access_token=2YotnFZFEjr1zCsicMWpAA&token_type=Bearer"; | |
return Redirect(url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment