Skip to main content
rahuln3859
February 21, 2023
Solved

how can I check if user has already authorized for a connected.

  • February 21, 2023
  • 8 replies
  • 0 views

I am creating an application that shows an alert to users to authorize an Connected System so that an integration can work.

now I want it to be shown to user only when they have already not authorized Connected System

so ,how can I check if user has already authorized for a connected...??

Best answer by peter.lewis

You might be able to do this by doing a GET against an API call and just load that in a local variable when loading the page. Then, use this to determine whether or not to show the link.

8 replies

gayathris111098
February 21, 2023

You can call the integration if its results error with 400 code you can show a screen says user is not authorized. when there's an error and can be retrieved through the onError parameter.


docs.appian.com/.../authorization_link_component.html

rahuln3859
February 21, 2023

I actually don't want to call the integrations because they are actually GDrive API Call to create a new folder in a Shared Drive.
Is there a Way Possible to check Without making any Integration Call.???

harshitb6843
February 21, 2023

Not sure what you are trying to achieve here. Can you provide some more information about it like what connected system is it and why user needs to authorize when they already signed in to Appian?

rahuln3859
February 21, 2023

the integration makes an GDrive API Call to create a new folder in a Shared Drive. and as it is for GDrive it need GDrive Credentials to check if the user is authorized to access the shared Drive hence it needs Authorization.

i hope that helps you to better understand my Question

peter.lewis
Employee
February 21, 2023

I'm assuming you're using OAuth for authentication? I don't believe there is a way to check whether the credentials are valid without doing an integration call, but it's pretty easy to set up an authorization link that can allow them to authorize it after doing the integration call: docs.appian.com/.../authorization_link_component.html