Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<location path="ProxyCallback.aspx">
  <system.web>
    <authorization>
      <allow users="*"/>
    </authorization>
  </system.web>
</location>
<%@ PageLanguage="VB"%> <script
Code Block
htmlhtml
Panel
borderColor#cccccc
bgColor#ffffff
titleBGColor#eeeeee
titleProxyCallback.aspx
borderStyledashed

Span
stylebackground-color:yellow
idhl

<%

@ Page Language="VB"
Span
stylebackground-color:yellow
idhl

%>

<script runat="server">


    Protected

Sub

Page_Load(ByVal

sender

As

Object,

ByVal

e

As

System.EventArgs)


        Dim

pgtIou

As

String

=

Request.QueryString.Get("pgtIou")


        Dim

pgtId

As

String

=

Request.QueryString.Get("pgtId")

If Not

       
        If Not String.IsNullOrEmpty(pgtIou)

And

_
            Not

String.IsNullOrEmpty(pgtId)

Then

Then

            'We

have

a

pgtIou/pgtId

pair

sent

from

CAS

server

server
            'Now

call

the

AssignPgtIDForCallingProxy

method

of

the

CASAuthentication

class

class
            'this

will

store

the

pgtId

in

an

application

variable

with

it's

name

the

value

of

the

pgtIou CASAuthentication

pgtIou
           CASAuthentication.AssignPgtIDForCallingProxy(pgtIou,

pgtId)

Else


        Else
            Response.Write("No

pgtIou/pgtId

pair

\

!")


        End

If

    

    End

Sub

</script> <html> <head> <title>Proxy Callback Url Page</title> </head> <body> </body> </html>


</script>

<html>
<head>
    <title>Proxy Callback Url Page</title>
</head>
<body>
</body>
</html>

CASProxy.aspx - The CAS Proxy (This would be the same application specified in the ProxyAppUrl attribute in the call to InvokeCASProxy method shown above)

...