miyabi02 / Angular-Saml

0 stars 0 forks source link

About Response Status 302 #1

Open TomokaKobayashi opened 1 year ago

TomokaKobayashi commented 1 year ago

レスポンスステータス302はJSでのハンドリングができないことが判明しました。 そのため、他のレスポンスステータスコードを利用するようにしてください。

The response status code '302' can't be handled by Javascript. So use other response status code.

TomokaKobayashi commented 1 year ago

さらにpassportとpassport-samlの動作も調査した結果、302以外でレスポンスすることは困難なようである。 従って、実装方針を大きく変更する必要があります。 別ウィンドウを出して、そこで認証を行い、その結果をangularアプリに通知する仕組みを作りたいと思います。

And, I inspected passport and passport-saml. It seems difficult to make response's status not '302'. We should chenge the direction to implement. I want to make a new library that authentice in another new window. After authentication, it notify the result to main body.

TomokaKobayashi commented 1 year ago

ちなみに英文併記しているのは、単なる練習。