Jump to content

Recommended Posts

Posted

I am sorry guys, I've done a search and couldn't see on here - or on Google an easy to understand guide for my request - actually the teachers as they are going insane but :p

 

Basically we are moving to a SSO structure within WCC and part of that is having global ids which move with the user throughout their education within WCC. This global id gives them access to a range of services using the Shibboleth SSO platform.

 

We also use these global ids and passwords in AD.

 

What I want to do is pass the current windows login details (preferably both username and password but I highly doubt the password bit is possible) to the Shibboleth webpage when they open it. I was going to do some form of AutoIT script, but I can't work out how to go about getting the windows username.

 

Does anyone have any good ideas for this?

 

The webpage requiring input is here Worcestershire Learning Gateway using the login link on the right. The page first asks for the username and then you submit and then it asks for the password. As stated I want to enter at least the username when prompted and submit the page so that they just have to use the password.

 

Any help appreciated!

Posted

Seems I was being stupid as this is easy on first glance of my quickly done AutoIt script - just need to loop it!

 

; Wait until the logon window shows itself...
WinWaitActive("Login - Windows Internet Explorer","https://shibboleth.networcs.net/SSO/auth/networcs_auth2/index.php")

; Add a little delay to avoid lag in accessing the website.
Sleep(500)

; Send the current logged on username to the form (which defaults to the username box).
Send(@UserName)

; Send the enter key after another small delay to move to the password page.
; This is just so the user can see what has happened...
Sleep(1500)
Send("{ENTER}")

Guest TheLibrarian
Posted
Shouldn't you thank yourself for answering your own query? ;)
Posted
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=green_padlock.ico
#AutoIt3Wrapper_outfile=User2Shibboleth.exe
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_Res_Comment=A little script to sit and run in the background of child logons to automatically re-enter their globalid. This is a huge time saver especially for the younger children that can't type quickly.
#AutoIt3Wrapper_Res_Description=Passes Username to a Shibboleth SSO Form
#AutoIt3Wrapper_Res_Fileversion=1.3.1.2
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
#AutoIt3Wrapper_Res_LegalCopyright=Alex 'Freedom' Haines
#AutoIt3Wrapper_Res_SaveSource=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

; Start the main loop.
Do

; Wait until the logon window shows itself...
WinWaitActive("Login - Windows Internet Explorer", "https://shibboleth.networcs.net/SSO/auth/networcs_auth2/index.php")

; Make sure this is the username window...
; WinWaitActive("Login - Windows Internet Explorer","Please enter your Username:")

; Add a little delay to avoid lag in accessing the website.
Sleep(500)

; Send the current logged on username to the form (which defaults to the username box).
Send(@UserName)

; Send the enter key to progress to the next page.
Send("{ENTER}")

; Display a message so the user knows what is happening.
MsgBox(0, "Shibboleth Logon Helper v1.3", "Hi " & @UserName &"! I noticed that you were trying to use a SSO service enabled website. To help out, I have already entered your username for you. Now all you need to do is put your password in.", 10)

; Wait for the user to finish entering their password and then loop.
; This helps stop us entering the username again by mistake as we can't differenciate the pages due to iframes!
Sleep(5000)
WinWaitClose("Login - Windows Internet Explorer", "https://shibboleth.networcs.net/SSO/auth/networcs_auth2/index.php")

; Sleep again and then loop to beginning to avoid double pasting etc.
Sleep(10000)

; End of the main loop.
; Exit the loop using 'ExitLoop' command.
Until False

User2Shibboleth.zip

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...