Commit 84d48bd8 authored by marcus.hardt's avatar marcus.hardt

Merge branch 'fix-subiss-to-unix-splitting' into 'master'

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

Closes #20

See merge request !30
parents cc30d0b0 82079b95
......@@ -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