Skip to content

Commit

Permalink
[AA-1744] NET 8 - Update Restsharp - Token Serialization (#469)
Browse files Browse the repository at this point in the history
* Update TokenRetriever.cs

* Add previous AdminApp version

* Update pgsql.Dockerfile

* Update pgsql.Dockerfile

Add a Hardcode prerelease version
  • Loading branch information
jleiva-gap authored Jun 13, 2024
1 parent b904531 commit a7e8e9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

using System;
using System.Net;
using System.Text.Json.Serialization;
using EdFi.Ods.AdminApp.Management.ErrorHandling;
using Newtonsoft.Json;
using RestSharp;
Expand Down Expand Up @@ -91,9 +92,13 @@ private string GetBearerToken(IRestClient oauthClient)

internal class BearerTokenResponse
{
[JsonPropertyName("access_token")]
public string AccessToken { get; set; }
public string ExpiresIn { get; set; }
[JsonPropertyName("expires_in")]
public int ExpiresIn { get; set; }
[JsonPropertyName("token_type")]
public string TokenType { get; set; }
[JsonPropertyName("error")]
public string Error { get; set; }
}
}
2 changes: 1 addition & 1 deletion Docker/pgsql.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ COPY Settings/pgsql/run.sh /app/run.sh
COPY Settings/pgsql/log4net.config /app/log4net.txt

RUN apk --no-cache add unzip=~6 dos2unix=~7 bash=~5 gettext=~0 postgresql13-client=~13 jq=~1 icu=~74 curl=~8 && \
wget -nv -O /app/AdminApp.zip "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_apis/packaging/feeds/EdFi/nuget/packages/EdFi.Suite3.ODS.AdminApp.Web/versions/${VERSION}/content" && \
wget -nv -O /app/AdminApp.zip "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_apis/packaging/feeds/EdFi/nuget/packages/EdFi.Suite3.ODS.AdminApp.Web/versions/3.3.1-alpha.0.5/content" && \
unzip /app/AdminApp.zip AdminApp/* -d /app/ && \
cp -r /app/AdminApp/. /app/ && \
rm -f /app/AdminApp.zip && \
Expand Down

0 comments on commit a7e8e9d

Please sign in to comment.