Commit 82079b95 authored by Joshua Bachmeier's avatar Joshua Bachmeier

subiss-to-unix: Split on last @-char

This allows for `@`s in the sub.
parent 02520bce
......@@ -120,9 +120,11 @@ if args.sub_iss == 'test-borja-new':
sys.stderr.write("using test id: %s\n" % args.sub_iss)
externalId = args.sub_iss
(sub,iss) = args.sub_iss.split('@')
vals = args.sub_iss.split('@')
sub = '@'.join(vals[0:-1]) # First few components are sub, may contain '@'
iss = vals[-1] # Last component is issuer may NOT contain '@'
externalId = ul.quote_plus(sub) + \
'@' + \
'@n' + \
ul.quote_plus(iss)
url = args.base_url + '/external-user/find/externalId/' + ul.quote_plus(str(externalId))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment