Skip to content

Conversation

@andreiavram
Copy link
Contributor

@andreiavram andreiavram commented Jul 23, 2019

HTTP_X_FORWARDED_FOR and REMOTE_ADDR can have more than one IP in them (it can be a comma separated list, usually appended by some proxies from the client to the server) - if that is the case, then the saving of the model breaks with;

DataError: invalid input syntax for type inet: "213.x.x.x, 10.0.0.x" (IPs redacted) in views.py when you save the token.

HTTP_X_FORWARDED_FOR and REMOTE_ADDR can have more than one IP in them (it can be a comma separated list, usually appended by some proxies from the client to the server) - if that is the case, then the saving of the model breaks with;

`DataError: invalid input syntax for type inet: "213.x.x.x, 10.0.0.x"` (IPs redacted) in `views.py` when you save the token.
@lnagel lnagel merged commit acafe57 into namespace-ee:master Jul 24, 2019
@lnagel
Copy link
Member

lnagel commented Jul 24, 2019

Thanks for the PR :)

Merged and released as 0.1.0

https://pypi.org/project/djangorestframework-sso/#history

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

Successfully merging this pull request may close these issues.

2 participants