MS Graph Refresh Token Generator
16 min
this connector automates the generation of refresh tokens for microsoft graph api, streamlining authentication processes microsoft graph is a powerful gateway to data and intelligence in microsoft 365, providing unified programmability for services like outlook, teams, and onedrive the ms graph refresh token generator connector simplifies authentication by generating and managing refresh tokens for seamless api integration this connector empowers swimlane turbine users to maintain continuous access to microsoft graph resources, ensuring automated workflows remain uninterrupted by handling the complexities of token generation and interactive logins, users can focus on orchestrating security playbooks with confidence limitations none to date supported versions this ms graph refresh token generator connector uses the latest version api configuration prerequisites to effectively utilize the ms graph refresh token generator with swimlane, ensure you have the following prerequisites oauth 2 0 client credentials authentication with the following parameters url the endpoint for microsoft graph api client id the application (client) id registered in the azure portal client secret the secret key generated for the registered application in azure tenant id the directory (tenant) id from the azure portal authentication methods oauth 2 0 client credentials authentication with these parameters url endpoint for microsoft graph api client id application (client) id registered in azure ad client secret client secret (key) generated for the application in azure ad tenant id directory id of the azure ad tenant scope permissions the app requires capabilities this ms graph refresh token generator connector provides the following capabilities generate refresh token initiate interactive login generate refresh token generate refresh token using auth code generated in interactive login initiate interactive login initiate interactive login configurations ms refresh token generator auth authenticates using oauth 2 0 client credentials configuration parameters parameter description type required url a url to the target host string required tenant id string required cl id the client id string required cl secret the client secret string required scope permission scopes for this action array optional verify ssl verify ssl certificate boolean optional http proxy a proxy to route requests through string optional actions generate refresh token generates a refresh token for ms graph using provided authorization code, redirect uri, and code verifier endpoint method get input argument name type required description auth code string required parameter for generate refresh token code verifier string required parameter for generate refresh token redirect uri string required the url to redirect to after login this must match one of the registered uris in your app's settings page output parameter type description scope string output field scope refresh token string output field refresh token example \[ { "access token" "eyj0exaioijkv1qilcjhbgcioijsuzi1niising1dci6ik5hvez2zestznl0aev1q ", "token type" "bearer", "expires in" 3599, "scope" "https%3a%2f%2fgraph microsoft com%2fmail read", "refresh token" "awabaaaavpm1kaplreqdfsbzjqftgamxzgutdm0t4b4 ", "id token" "eyj0exaioijkv1qilcjhbgcioijub25lin0 eyjhdwqioiiyzdrkmtfhmi1mode0ltq2ytctod " } ] initiate interactive login initiates an interactive login for ms graph refresh token generator using a specified redirect uri endpoint method get input argument name type required description redirect uri string required the url to redirect to after login this must match one of the registered uris in your app's settings page output parameter type description code verifier string code verifier login uri string output field login uri state string output field state example \[ { "code verifier" "string", "login uri" "string", "state" "string" } ]