---
title: Pathfix Consent Screen
slug: consent-screen
docTags: 
createdAt: 2021-02-10T06:17:04.000Z
---

The JavaScript OAuth libraries takes care of passing the relevant parameters to the consent screen internally but if you do choose to control the consent screen.



### 1. Invocation through code

URL: https\://labs.pathfix.com/integrate/command


Querystring parameters

| Param Name  | Description                                                                                     |
| ----------- | ----------------------------------------------------------------------------------------------- |
| provider    | Name of the provider from the [Provider Reference](https://docs.pathfix.com/provider-reference) |
| public\_key | Your Pathfix public\_key [Pathfix Keys](https://docs.pathfix.com/pathfix-keys)                  |
| user\_id    | leave empty if using an identity provider, else use the user\_id for whom this is being done    |



### 2. Controlling post authorization action



Additional querystring parameters to redirect to a specified url post consent

| Param Name          | Description |
| ------------------- | ----------- |
| consented\_redirect | valid url   |
| consented\_action   | redirect    |

*Note: The page will be redirected to, like so: consented\_redirect?provider=...\&oauthId=...*



Additional querystring parameters to get a message on the opening window

| Param Name          | Description           |
| ------------------- | --------------------- |
| consented\_redirect | the window opener url |
| consented\_action   | postmessage           |

*Note: The postmessage will send the data like so: window\.postMessage(\{provider:...,oauthId:...},"origin")*



Additional querystring parameters to post details of authorization to another url without redirect

| Param Name          | Description                 |
| ------------------- | --------------------------- |
| consented\_redirect | the url endpoint to post to |
| consented\_action   | post                        |



Additional querystring parameters to get a message in your Android or iOS app

| Param Name        | Description       |
| ----------------- | ----------------- |
| consented\_action | postwebkitmessage |

*Note:&#x20;*

- *The postmessage will send the data like so: window\.webkit.messageHandlers.pathfix.postMessage(\{provider:...,oauthId:...})*
- *Ensure that the name of the messagehandler defined in your native app is "pathfix" (all in lowercase)*

**




