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

403 when refreshing token for EU server #15

Closed
auras opened this issue Dec 13, 2020 · 2 comments
Closed

403 when refreshing token for EU server #15

auras opened this issue Dec 13, 2020 · 2 comments

Comments

@auras
Copy link

auras commented Dec 13, 2020

I'm not 100% sure why this happens, but I fixed it by changing the headers:

        return await axios.post(
            CARELINKEU_REFRESH_TOKEN_URL,
            {},
            {
                headers: {
                    Authorization: "Bearer " + _.get(getCookie(CARELINKEU_TOKEN_COOKIE), 'value', ''),
                    'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0",
                    Cookie: ''
                },
            },
        )

So it's either the cookies or the token refresh service is banning the axios user agent.

bewest added a commit that referenced this issue Dec 24, 2020
Per #15.
Recent feedback indicates that people trying without this are receiving 403.   Per the issue details, setting cookie at this point may allow things to work.
Unit tests pass either way.
@Grynn
Copy link

Grynn commented Feb 19, 2021

Maybe unrelated, but I get 403 for all requests from Heroku (EU).

Heroku shell

curl -sL  'https://carelink.minimed.eu/patient/sso/login?country=gb&lang=en'
<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>

You don't have permission to access "http&#58;&#47;&#47;carelink&#46;minimed&#46;eu&#47;patient&#47;sso&#47;login&#63;" on this server.<P>
Reference&#32;&#35;18&#46;672b2817&#46;1613758522&#46;10375e4f
</BODY>
</HTML>

Local shell

curl -sL 'https://carelink.minimed.eu/patient/sso/login?country=gb&lang=en - works

@bewest
Copy link
Member

bewest commented May 30, 2023

Cleaning up issues here, closing for now.

@bewest bewest closed this as completed May 30, 2023
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

3 participants