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

no documentation regarding redirections #492

Open
rvion opened this issue May 2, 2016 · 3 comments
Open

no documentation regarding redirections #492

rvion opened this issue May 2, 2016 · 3 comments

Comments

@rvion
Copy link
Contributor

rvion commented May 2, 2016

I guess I have to use err307 from my handler to redirect user to some external website
(I need that part of my openid connect flow)

I think it should have first class support.
As of now, types do not represent current behaviour.

how about a list of potential redirect urls ?


also related
https://www.wikiwand.com/en/HATEOAS has a concept of related ressources / links
eg:

    HTTP/1.1 200 OK
    Content-Type: application/xml
    Content-Length: ...

    <?xml version="1.0"?>
    <account>
       <account_number>12345</account_number>
       <balance currency="usd">100.00</balance>
       <link rel="deposit" href="http://somebank.org/account/12345/deposit" />
       <link rel="withdraw" href="http://somebank.org/account/12345/withdraw" /> 
       <link rel="transfer" href="http://somebank.org/account/12345/transfer" />
       <link rel="close" href="http://somebank.org/account/12345/close" />
     </account>

I think those should probably be modelled too

@alpmestan
Copy link
Contributor

There's been some discussion about making redirects first class in servant, mostly here. It would be terrific to have someone explore this lead or any other further and land some code that helps with this in servant.

@alexanderkjeldaas
Copy link
Contributor

and update on this?

@alpmestan
Copy link
Contributor

Nobody explored redirects further than what's been done and referenced here already, as far as I know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants