Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"headers" parameter for openAuth function has no effect. #113

Open
jujur10 opened this issue Oct 23, 2024 · 0 comments
Open

"headers" parameter for openAuth function has no effect. #113

jujur10 opened this issue Oct 23, 2024 · 0 comments

Comments

@jujur10
Copy link

jujur10 commented Oct 23, 2024

The header is not modified.
Code exemple:

// Function used to execute action when the provider button is clicked.
    async function onNewConnectionClick() : Promise<void> {
        const url = `${BASE_API_URL}/protected/oauth2/${$selectedProvider}/login?redirect_url=${APP_URL}`
        const cookie = retrieveConnectionCookie()
        if (cookie == null) {
            navigateTo(PageList[PageIndex.LOGIN])
            return
        }
        try {
            if (await InAppBrowser.isAvailable()) {
                InAppBrowser.openAuth(url, APP_URL, {
                    ephemeralWebSession: false,
                    showTitle: false,
                    enableUrlBarHiding: true,
                    enableDefaultShare: false,
                    headers: {
                        'Cookie': 'session_id=' + cookie.sessionId
                    }
                    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant