Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementação da autenticação do JWT no projeto #4

Open
wants to merge 61 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
b1aaae4
init
raphaelfalves Jul 17, 2024
15cb850
Merge pull request #1 from raphaelfalves/development
raphaelfalves Jul 17, 2024
6fbddb1
fix: correct directory structure
raphaelfalves Jul 17, 2024
efabf23
Merge pull request #2 from raphaelfalves/development
raphaelfalves Jul 17, 2024
8fa87f9
fix: project reference
raphaelfalves Jul 17, 2024
65b84d9
Merge pull request #3 from raphaelfalves/development
raphaelfalves Jul 17, 2024
6bb8369
feat: add responsive design to application
raphaelfalves Jul 17, 2024
799026d
Merge pull request #4 from raphaelfalves/development
raphaelfalves Jul 17, 2024
e66d926
feat: add map markers functionality
raphaelfalves Jul 18, 2024
ac39c5b
Merge pull request #5 from raphaelfalves/development
raphaelfalves Jul 18, 2024
3743ff7
feat: add dark mode
angeloavelinoo Jul 18, 2024
4c5874c
Merge pull request #6 from raphaelfalves/development
angeloavelinoo Jul 19, 2024
695dece
Adicionando autenticação JWT
jonathanBpereira Jul 19, 2024
9b6e583
Add or update the Azure App Service build and deployment workflow config
raphaelfalves Jul 21, 2024
d8977ac
Update main_api-desafiodiadorock.yml
raphaelfalves Jul 21, 2024
4785128
Update main_api-desafiodiadorock.yml
raphaelfalves Jul 21, 2024
1d1519b
Update main_api-desafiodiadorock.yml adicionando UI
raphaelfalves Jul 21, 2024
9ed324b
Update main_api-desafiodiadorock.yml
raphaelfalves Jul 21, 2024
4a16b08
Update main_api-desafiodiadorock.yml Fixing UI path
raphaelfalves Jul 21, 2024
653495a
Add or update the Azure App Service build and deployment workflow config
raphaelfalves Jul 21, 2024
80906d3
Update main_api-desafiodiadorock.yml remove workflow from ui
raphaelfalves Jul 21, 2024
b8e1ab4
Update main_ui-desafiodiadorock.yml fixing path
raphaelfalves Jul 21, 2024
0c04b4c
ci: add Azure Static Web Apps workflow file
raphaelfalves Jul 21, 2024
3189f61
Update azure-static-web-apps-agreeable-beach-00c84fb0f.yml
raphaelfalves Jul 21, 2024
6d8cfe9
Delete .github/workflows/main_ui-desafiodiadorock.yml
raphaelfalves Jul 21, 2024
8256fdd
fix: sln
raphaelfalves Jul 21, 2024
28ed4ed
refactor: fetch URLs from environment variables before setting defaults
raphaelfalves Jul 21, 2024
e8a2dae
Merge pull request #7 from raphaelfalves/development
raphaelfalves Jul 21, 2024
5f88763
Update main_api-desafiodiadorock.yml set environment variable
raphaelfalves Jul 21, 2024
e21f31c
refactor: remove fetch urls from environment variable and get from ap…
raphaelfalves Jul 21, 2024
818cc88
Merge pull request #8 from raphaelfalves/development
raphaelfalves Jul 21, 2024
fa44e1e
fix: correct url production projects
raphaelfalves Jul 21, 2024
eff26da
Merge pull request #9 from raphaelfalves/development
raphaelfalves Jul 21, 2024
ac1ca32
refactor: remove jwt for test
raphaelfalves Jul 21, 2024
9f245d6
Merge pull request #10 from raphaelfalves/development
raphaelfalves Jul 22, 2024
25c6cd3
adicionando o aspire e o início dos testes automatizados
jonathanBpereira Jul 22, 2024
0446713
inclusão do aspire e projeto de testes inicial
jonathanBpereira Jul 22, 2024
da951cd
feat: Criando auth, Register e Login
angeloavelinoo Jul 22, 2024
8bffecd
feat: Criando Auth, Login and Register
angeloavelinoo Jul 22, 2024
a6545a3
feat: Criando tela de Login e Register
angeloavelinoo Jul 22, 2024
b093267
feat: Add Auth e Input Auth
angeloavelinoo Jul 23, 2024
00285a1
feat: Fix some bugs
angeloavelinoo Jul 23, 2024
dc86558
Merge pull request #11 from raphaelfalves/development
angeloavelinoo Jul 23, 2024
7374bf2
feat: Add Auth
angeloavelinoo Jul 23, 2024
1e89b4c
fix
angeloavelinoo Jul 23, 2024
8a51320
Update readme.md
angeloavelinoo Jul 24, 2024
0ab9254
feat: Logout button
angeloavelinoo Jul 25, 2024
59ab27a
Merge branch 'main' of https://github.com/raphaelfalves/desafio-dia-d…
angeloavelinoo Jul 25, 2024
18404bf
fix: colors
raphaelfalves Jul 25, 2024
c49dc5b
Merge branch 'development' of https://github.com/raphaelfalves/desafi…
raphaelfalves Jul 25, 2024
6bdc555
Migration
raphaelfalves Jul 25, 2024
4febeb1
feat: complete first part of the user flow
raphaelfalves Jul 25, 2024
84f0984
fix: authentication
raphaelfalves Jul 25, 2024
92712e3
feat: add approve flow
raphaelfalves Jul 26, 2024
7f39698
fix: little bugs
raphaelfalves Jul 26, 2024
b81417a
feat: fix api key send blue
angeloavelinoo Jul 26, 2024
d270ae0
Update readme.md
angeloavelinoo Jul 26, 2024
549f969
feat: db production
raphaelfalves Jul 26, 2024
83a1bae
merge
raphaelfalves Jul 26, 2024
ac699c2
feat: mvp
raphaelfalves Jul 27, 2024
1fc374b
Merge pull request #12 from raphaelfalves/development
raphaelfalves Jul 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AGREEABLE_BEACH_00C84FB0F }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "./src/DesafioDiaDoRock.UI" # App source code path
output_location: "wwwroot" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AGREEABLE_BEACH_00C84FB0F }}
action: "close"
62 changes: 62 additions & 0 deletions .github/workflows/main_api-desafiodiadorock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP.Net Core app to Azure Web App - api-desafiodiadorock

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'

- name: Build with dotnet
run: dotnet build src/DesafioDiaDoRock.PublicApi/DesafioDiaDoRock.PublicApi.csproj --configuration Release

- name: dotnet publish
run: dotnet publish src/DesafioDiaDoRock.PublicApi/DesafioDiaDoRock.PublicApi.csproj -c Release -o ${{env.DOTNET_ROOT}}/api-desafiodiadorock

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: .net-api-app
path: ${{env.DOTNET_ROOT}}/api-desafiodiadorock

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: .net-api-app

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'api-desafiodiadorock'
slot-name: 'Production'
package: .
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_BFC982AFC2EE44BF933EE86A57FE4EF9 }}

- name: Set environment variables
run: |
echo "BackendUrl=https://api-desafiodiadorock-geh0e9e3gkfpbzgg.eastus-01.azurewebsites.net/" >> $GITHUB_ENV
echo "FrontendUrl=https://ui-desafiodiarock.raphaelfalves.dev/" >> $GITHUB_ENV
echo "GoogleApiKey=AIzaSyAqN-qevL5e5RtlGTbcUwEVkh7vi6MPcuM" >> $GITHUB_ENV
Loading