Skip to Content.

geteduroam - Re: Problem with certificates generated

Subject: An open discussion list for topics related to the geteduroam service

List archive


Re: Problem with certificates generated


Chronological Thread 
  • From: Darren Boss <Darren.Boss AT alliancecan.ca>
  • To: "geteduroam AT lists.geant.org" <geteduroam AT lists.geant.org>, Jørn Åne de Jong <jornane.dejong AT surf.nl>
  • Subject: Re: Problem with certificates generated
  • Date: Wed, 17 Aug 2022 19:25:24 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=alliancecan.ca; dmarc=pass action=none header.from=alliancecan.ca; dkim=pass header.d=alliancecan.ca; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0A7xntGGZnCZAMLGHImb4j5jThUTFKTKjtF9XHs3vvs=; b=ILYXHvf4nRqlHlOwGU/iGWGxuGMCvHVWXcSi5o60zGDxoZsy4tBQnrAhWbIQmUqMMkQgkGdNpEtA5+1YflKvChkOdUhEVfXXAamQbILlUjtWm7pdnPKFQGzwHX2rqmWoqFULJLgl1Ba3qHrGtuzR/sEg9xEMU0P9u/fD059+KbzqOa+Y8bX2nq9rR0qRj5QpyQi4Pi5ofo0qWANhN0gDUM0opiA6xXaMZQQycRapoX4qxVCOvwNbZ0CHfVRlNpB9AoDHEs/llO/edZ/XuA5miCBw4M0KxDiacohYRCPGZeRqwejX5elM224h3ZoS1VNdHoqaG2CGjvfk+MQ8yhsKMw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fBWpYbyQA+papC6ajwRN6FdIl+rYncJsR16d8lqKfFUVP8jdSn2a9u3Srw3ibfApXSILHbep36Yc2iPm6yiLsO1o8Pz9at+8KWpZKQ9laTiwcedJQVET3HgRGLh4CG9ziBP0wEATUY1e46OEbUkfLwflFhxMUjxQiijjRKAjesuR0tQIgJ20RLbC343gKi6Qh59T9j2YTig2BSyjMZeonlkRPE1KmSie91DtWC1dnIVCSDgBzAFLc44VJQq83+3/zbo5qW7wYJsDATPKFAN6G8mE9r3OO4z/F8f5PGJiV3vZLqsWhMJmMpiWDuhVT02y9brMiPP3VwgxGB1LPWh2Jw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=alliancecan.ca;
  • Msip_labels:

Got the response body logged via mod_security:
{
"error": "invalid_request",
"error_description": "Missing SERVER parameter HTTP_AUTHORIZATION"
}

This is the cause of the 400 error on the Debian vm.

From: geteduroam-request AT lists.geant.org <geteduroam-request AT lists.geant.org>
on behalf of Jørn Åne de Jong <geteduroam AT lists.geant.org>
Sent: Wednesday, August 17, 2022 9:14 AM
To: geteduroam AT lists.geant.org <geteduroam AT lists.geant.org>
Subject: Re: Problem with certificates generated
 
On 17/08/2022 14:54, Darren Boss (via geteduroam Mailing List) wrote:
> I redeployed the portal on Debian 11.4 (Bullseye) but now I'm getting a
> error 400 on the call from the Android app to /api/eap-config/. I decided
> to log the Authorization header to a custom log and was able to decode it
> using a JWT decoder. Looks fine, sub claim is my email address (using email
> nameid from Azure AD). Including the decoded JWT in case it's something
> obvious:
>
> {
>    "__t": "access_token",
>    "iat": "1660739494",
>    "sub": "Darren.Boss AT alliancecan.ca",
>    "realm": "alliancecan.ca",
>    "scope": "eap-metadata",
>    "code_challenge_method": "S256",
>    "code_challenge": "LQpjYE1ZjYAC6i9OwaU3OFYUBR9-rV-X0ohvYcXpLi4",
>    "client_id": "app.eduroam.geteduroam",
>    "redirect_uri": "app.eduroam.geteduroam:/",
>    "exp": "1676637094"
> }
>
> jwt.io is flagging the dates as invalid but they look right to me and the
> iat matches the date of the apache log entry.

I think the dates are supposed to be ISO strings.  I'll fix that in a
future release, but it's not really a problem since we don't need
interoperability with other solutions.

Error 400 means typically something wrong with the OAuth request.  Can
you find the answer body?  It should tell you what's wrong.

--
Jørn Åne de Jong
geteduroam


Archive powered by MHonArc 2.6.19.

Top of Page