Skip to content
No description or website provided.
CSS TypeScript C# HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
ClientApp
Connected Services/Application Insights
Controllers
Models
Views
wwwroot
.gitignore
Program.cs
README.MD
Startup.cs
appsettings.json
appveyor.yml
atmosphere-web.csproj
atmosphere-web.sln
package.json
tsconfig.json
webpack.config.js
webpack.config.vendor.js

README.MD

Web client of atmosphere

Build status

This client app for presenting dashboards and aggregated data collected in atmosphere

Required configurations

{
  "ConnectionStrings": {
    "AtmosphereDatabase": ""
  },
  "Authentication": {
    "Google": {
      "ClientID": "",
      "ClientSecret": ""
    }
  },
  "Authorization": {
    "SymmetricKey": ""
  },
  "ImagesEndpoint": ""
}

Run

You can either just run debugger in Visual Studio (which will spin up Node.js with hot reload) or run from CLI:

dotnet restore
npm install
node .\node_modules\webpack\bin\webpack.js --config webpack.config.vendor.js
dotnet run

Authorizations

Few words:

  • The authentication happens using Google
  • Once user lands on application after Google, the auth* HttpOnly cookie is written - Cookie scheme
  • / (root of SPA) and /account/bearertoken protected with scheme Cookie. This makes a cookie kinda refresh token.
  • When API request made from SPA it first will obtain an access token in JWT format from /account/bearertoken
  • All API controllers protected with Bearer scheme
You can’t perform that action at this time.