問題タブ [apereo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
cas - Apereo CAS プロトコル: CAS サーバーが URL を変更することは許可されていますか?
CAS Webflow によると ( https://apereo.github.io/cas/5.0.x/images/cas_flow_diagram.png ):
認証が成功すると、CAS サーバーは Cookie と URL (Location-Header) を含むリダイレクトをブラウザーに送信します。この URL は、チケット パラメータ (サービス チケットを含む) が追加された、最初に要求された保護された URL のように見えます。CAS サーバーがこの URL にさらにパラメータを追加すると、CAS プロトコルに違反しますか?
私の実際のケースでは、CAS サーバーで認証するときに、ユーザーはドロップダウンから言語を選択します。次に、この lang-Parameter がユーザー名とパスワードとともに送信され、CAS サーバーはリダイレクトで送信する URL に「&lang=fr-FR」のように単純に追加します。
そのパラメーターが原因で、Apereo Java クライアントは検証エラーに遭遇します。これは、サービス チケットを検証するサービス URL にこの lang パラメータが含まれているためです。その後、CAS サーバーはサービス チケットを検証しません。これは、サービス チケットが別の URL (lang パラメータなし) に対して発行されたためです。
私の質問は、この特定の CAS サーバーは CAS プロトコルに違反していますか?
それとも、Apereo CAS クライアントは、検証のためにサービス URL を作成するときに、未知のリクエスト パラメータをすべて取り除くことで、これに対処することが期待されますか?
oauth-2.0 - Apereo CAS OAuth2: /callbackAuthorize エンドポイントの目的は何ですか?
この観察結果は、CAS 5.3.9 およびhttps://apereo.github.io/cas/5.3.x/installation/OAuth-OpenId-Authentication.htmlのドキュメントに関連しています。
/callbackAuthorize エンドポイントについては言及されていませんが、認証コード フローの実装でこれが見られます。要求のシーケンスは次のとおりです (ユーザーは既に CAS に対して認証されていると想定しています)。
REQ: GET https://localhost:8145/api/profile (アプリケーションの保護されたエンドポイント)
REQ: GET (上記 URL)
REQ: GET (上記 URL)
REQ: GET (上記 URL)
RESP: 500、内部サーバー エラー (cas サーバー ログに SSL ハンドシェイクの例外が表示されます。おそらくサーバーは、トラストストアに証明書がない URL にアクセスしようとしています)
私の質問:
1) /oauth2.0/callbackAuthorize エンドポイントに関するドキュメントはありますか?
2) CAS サーバーが OAuth2 フローでチケットを発行するのはなぜですか? 代わりにアクセス トークンを生成するべきではありませんか?
3) パラメータ client_name=CasOAuthClient はどこから来たのですか? CAS サーバーは OAuth2 クライアントとして機能しようとしていますか?
c# - Cas 4 attributes not return in ASP
I have a project that redirect user to cas server and after user log in redirect it to my local (I'm using virtual host on IIS my.uk.ac.ir). Problem is that when it returns it doesnt return attribute. my project is on .net4.5.2 and using tls12
this is the original project that I modified. https://github.com/casinthecloud/dotnet-cas-client-demo
this is the link to modified project: https://github.com/HamidRezaAshkiyan/dotnet-cas-client-demo my modification is on dev branch.
Here is my web.config:
this is my index page where redirects after login:
this is the backend code:
I'm not sure that the right way of getting the attributes or not.
I've tried this solution for java but not helped me. Cas no attributes come to client
there where similar problem on php and my coworkers solved it with cas protocol 3 and i saw similar on the answer above.