Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phackwer/3160631e411c687952562c8d1c739737 to your computer and use it in GitHub Desktop.
Save phackwer/3160631e411c687952562c8d1c739737 to your computer and use it in GitHub Desktop.
F5 - Builda e executa uma versão do IIS embutida no Visual Studio
CTRL + , = Eclipse Ctrl + Shift + R
CTRL + K e C = Comentar linha
CTRL + K e D = Identar código
https://wiki.jasig.org/display/casc/.net+cas+client
1 - Adicionar o DotNetCasClient ao projeto, selecionando o Manage NuGet Packages
2 - Remova o nó
<authentication mode="None"/>
3 - Edite o nó autentication:
<authentication mode="Forms">
<forms loginUrl="https://cas.example.com/cas/login" cookieless="UseCookies" />
</authentication>
4 - Abrir o arquivo Web.config e editar o nó casClientConfig:
<casClientConfig
casServerLoginUrl="https://cas.example.com/cas/login"
casServerUrlPrefix="https://cas.example.com/cas/"
serverName="cas.example.com"
notAuthorizedUrl="~/NotAuthorized.aspx"
cookiesRequiredUrl="~/CookiesRequired.aspx"
redirectAfterValidation="true"
gateway="false"
renew="false"
singleSignOut="true"
ticketTimeTolerance="5000"
ticketValidatorName="Cas20"
proxyTicketManager="CacheProxyTicketManager"
serviceTicketManager="CacheServiceTicketManager"
gatewayStatusCookieName="CasGatewayStatus"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment