app/static/assets/images/payments/amazon-dark.svg
Son NK c18d9f5280 create BaseForm to enable CSRF
register page

redirect user to dashboard if they are logged in

enable csrf for login page

Set models more strict

bootstrap developer page

add helper method to ModelMixin, remove CRUDMixin

display list of clients on developer index, add copy client-secret to clipboard using clipboardjs

add toastr and use jquery non slim

display a toast when user copies the client-secret

create new client, generate client-id using unidecode

client detail page: can edit client

add delete client

implement /oauth/authorize and /oauth/allow-deny

implement /oauth/token

add /oauth/user_info endpoint

handle scopes: wip

take into account scope: display scope, return user data according to scope

create virtual-domain, gen email, client_user model WIP

create authorize_nonlogin_user page

user can choose to generate a new email

no need to interfere with root logger

log for before and after request

if user has already allowed a client: generate a auth-code and redirect user to client

get_user_info takes into account gen email

display list of clients that have user has authorised

use yk-client domain instead of localhost as cookie depends on the domain name

use wtforms instead of flask_wtf

Dockerfile

delete virtual domain

EMAIL_DOMAIN can come from env var

bind to host 0.0.0.0

fix signup error: use session as default csrf_context

rename yourkey to simplelogin

add python-dotenv, ipython, sqlalchemy_utils

create DB_URI, FLASK_SECRET. Load config from CONFIG file if exist

add shortcuts to logging

create shell

add psycopg2

do not add local data in Dockerfile

add drop_db into shell

add shell.prepare_db()

fix prepare_db

setup sentry

copy assets from tabler/dist

add icon downloaded from https://commons.wikimedia.org/wiki/File:Simpleicons_Interface_key-tool-1.svg

integrate tabler - login and register page

add favicon

template: default, header. Use gravatar for user avatar url

use default template for dashboard, developer page

use another icon

add clipboard and notie

prettify dashboard

add notie css

add fake gen email and client-user

prettify list client page, use notie for toast

add email, name scope to new client

display client scope in client list

prettify new-client, client-detail

add sentry-sdk and blinker

add arrow, add dt jinja filter, prettify logout, dashboard

comment "last used" in dashboard for now

prettify date display

add copy email to clipboard to dashboard

use "users" as table name for User as "user" is reserved key in postgres

call prepare_db() when creating new db

error page 400, 401, 403, 404

prettify authorize_login_user

create already_authorize.html for user who has already authorized a client

user can generate new email

display all other generated emails

add ENV variable, only reset DB when ENV=local

fix: not return other users gen emails

display nb users for each client

refactor shell: remove prepare_db()

add sendgrid

add /favicon.ico route

add new config: URL, SUPPORT_EMAIL, SENDGRID_API_KEY

user needs to activate their account before login

create copy button on dashboard

client can have multiple redirect uris, in client detail can add/remove redirect-uri,

use redirect_uri passed in /authorize

refactor: move get_user_info into ClientUser model

dashboard: display all apps, all generated emails

add "id" into user_info

add trigger email button

invalidate the session at each new version by changing the secret

centralize Client creation into Client.create_new

user can enable/disable email forwarding

setup auto dismiss alert: just add .alert-auto-dismiss

move name down in register form

add shell.add_real_data

move blueprint template to its own package

prettify authorize page for non-authenticated user

update readme, return error if not redirect_uri

add flask-wtf, use psycopg2-binary

use flask-wtf FlaskForm instead of Form

rename email -> email_utils

add AWS_REGION, BUCKET, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY to config

add s3 module

add File model, add Client.icon_id

handle client icon update

can create client with icon

display client icon in client list page

add Client.home_url

take into account Client.home_url

add boto3

register: ask name first

only show "trigger test email" if email forwarding is enabled

display gen email in alphabetical order, client in client.name alphabetical order

better error page

the modal does not get close when user clicks outside of modal

add Client.published column

discover page that displays all published Client

add missing bootstrap.bundle.min.js.map

developer can publish/unpublish their app in discover

use notie for display flash message

create hotmail account

fix missing jquery

add footer, add global jinja2 variable

strengthen model: use nullable=False whenever possible,

rename client_id to oauth_client_id, client_secret to oauth_client_secret

add flask-migrate

init migrate

1st migrate version

fix rename client_id -> oauth_client_id

prettify UI

use flask_migrate.upgrade() instead of db.create_all()

make sure requirejs.config is called for all page

enable sentry for js, use uppercase for global jinja2 variables

add flask-admin

add User.is_admin column

setup flask admin, only accessible to admin user

fix migration: add server_default

replace session[redirect_after_login] by "next" request args

add pyproject.toml: ignore migrations/ in black

add register waiting_activation_email page

better email wording

add pytest

add get_host_name_and_scheme and tests

example fail test

fix test

fix client-id display

add flask-cors

/user_info supports cors, add /me as /user_info synonym

return client in /me

support implicit flow

no need to use with "app.app_context()"

add watchtower to requirement

add param ENABLE_CLOUDWATCH, CLOUDWATCH_LOG_GROUP, CLOUDWATCH_LOG_STREAM

add cloudwatch logger if cloudwatch is enabled

add 500 error page

add help text for list of used client

display list of app/website that an email has been used

click on client name brings to client detail page

create style.css to add additional style, append its url with the current sha1 to avoid cache

POC on how to send email using postfix

add sqlalchemy-utils

use arrow instead of datetime

add new params STRIPE_API, STRIPE_YEARLY_SKU, STRIPE_MONTHLY_PLAN

show full error in local

add plan, plan_expiration to User, need to create enum directly in migration script, cf https://github.com/sqlalchemy/alembic/issues/67

reformat all html files: use space instead of tab

new user will have trial plan for 15 days

add new param MAX_NB_EMAIL_FREE_PLAN

only user with enough quota can create new email

if user cannot create new gen email, pick randomly one from existing gen emails. Use flush instead of commit

rename STRIPE_YEARLY_SKU -> STRIPE_YEARLY_PLAN

open client page in discover in a new tab

add stripe

not logging /static call: disable flask logging, replace by after_request

add param STRIPE_SECRET_KEY

add 3 columns stripe_customer_id, stripe_card_token, stripe_subscription_id

user can upgrade their pricing

add setting page as coming-soon

add GenEmail, ClientUser to admin

ignore /admin/static logging

add more fake data

add ondelete="cascade" whenever possible

rename plan_expiration -> trial_expiration

reset migration: delete old migrations, create new one

rename test_send_email -> poc_send_email to avoid the file being called by pytest

add new param LYRA_ANALYTICS_ID, add lyra analytics

add how to create new migration into readme

add drift to base.html

notify admin when new user signs up or pays subscription

log exception in case of 500

use sendgrid to notify admin

add alias /userinfo to user_info endpoint

add change_password to shell

add info on how payment is handled

invite user to retry if card not working

remove drift and add "contact us" link

move poc_send_email into poc/

support getting client-id, client-secret from form-data in addition to basic auth

client-id, client-secret is passed in form-data by passport-oauth2 for ex

add jwtRS256 private and public key

add jwk-jws-jwt poc

add new param OPENID_PRIVATE_KEY_PATH, OPENID_PRIVATE_KEY_PATH

add scope, redirect_url to AuthorizationCode and OauthToken

take into scope when creating oauth-token, authorization-code

add jwcrypto

add jose_utils: make_id_token and verify_id_token

add &scope to redirect uri

add "email_verified": True into user_info

fix user not activated

add /oauth2 as alias for /oauth

handle case where scope and state are empty

remove threaded=False

Use Email Alias as wording

remove help text

user can re-send activation email

add "expired" into ActivationCode

Handle the case activation code is expired

reformat: use form.validate_on_submit instead of request.method == post && form.validate

use error text instead of flash()

display client oauth-id and oauth-secret on client detail page

not display oauth-secret on client listing

fix expiration check

improve page title, footer

add /jwks and /.well-known/openid-configuration

init properly tests, fix blueprint conflict bug in flask-admin

create oauth_models module

rename Scope -> ScopeE to distinguish with Scope DB model

set app.url_map.strict_slashes = False

use ScopeE instead of SCOPE_NAME, ...

support access_token passed as args in /userinfo

merge /allow-deny into /authorize

improve wording

take into account the case response_type=code and openid is in scope

take into account response_type=id_token, id_token token, id_token code

make sure to use in-memory db in test

fix scope can be null

allow cross_origin for /.well-known/openid-configuration and /jwks

fix footer link

center authorize form

rename trial_expiration to plan_expiration

move stripe init to create_app()

use real email to be able to receive email notification

add user.profile_picture_id column

use user profile picture and fallback to gravatar

use nguyenkims+local@gm to distinguish with staging

handle plan cancel, reactivation, user profile update

fix can_create_new_email

create cron.py that set plan to free when expired

add crontab.yml

add yacron

use notify_admin instead of LOG.error

add ResetPasswordCode model

user can change password in setting

increase display time for notie

add forgot_password page

If login error: redirect to this page upon success login.

hide discover tab

add column user.is_developer

only show developer menu to developer

comment out the publish button

set local user to developer

make sure only developer can access /developer blueprint

User is invited to upgrade if they are in free plan or their trial ends soon

not sending email when in local mode

create Partner model

create become partner page

use normal error handling on local

fix migration

add "import sqlalchemy_utils" into migration template

small refactoring on setting page

handle promo code. TODO: add migration file

add migration for user.promo_codes

move email alias on top of apps in dashboard

add introjs

move encode_url to utils

create GenEmail.create_new_gen_email

create a first alias mail to show user how to use when they login

show intro when user visits the website the first time

fix register
2019-07-02 10:20:12 +03:00

1 line
No EOL
8.6 KiB
XML
Executable file

<svg width="100" height="60" viewBox="0 0 100 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Amazon-dark</title><desc>Created with Sketch.</desc><g id="Dark-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-290.000000, -1089.000000)"><g id="Amazon-dark" transform="translate(290.000000, 1089.000000)"><rect id="Rectangle" fill="#000" x="0" y="0" width="100" height="60" rx="4"/><path d="M59.3034482,36.6923784 C55.1224434,39.7717966 49.0623322,41.4147775 43.8446894,41.4147775 C36.5287124,41.4147775 29.9424557,38.7109001 24.959698,34.213825 C24.5682187,33.8601909 24.9189827,33.3782514 25.3887602,33.6536449 C30.7661271,36.7800051 37.4150245,38.6608282 44.2831484,38.6608282 C48.915136,38.6608282 54.0106392,37.703203 58.6958711,35.7159787 C59.4036672,35.4155463 59.9955844,36.1791426 59.3034482,36.6923784" id="path8" fill="#F90"/><path d="M61.0416204,34.7051541 C60.5092057,34.022926 57.5089044,34.3828175 56.1622138,34.5424215 C55.7519413,34.5924933 55.6893065,34.2357317 56.0588615,33.9791114 C58.4484558,32.2985769 62.3695201,32.7836475 62.8267687,33.3469551 C63.284015,33.9133938 62.7077588,37.8409027 60.4622285,39.7154638 C60.1177265,40.0033767 59.7888832,39.8500337 59.9423451,39.4682343 C60.4465698,38.2101802 61.5771649,35.3905122 61.0416204,34.7051541" id="path10" fill="#F90"/><path d="M56.2561696,22.1152226 L56.2561696,20.4816301 C56.2561696,20.2344006 56.4440799,20.0685381 56.669572,20.0685381 L63.9886788,20.0685381 C64.2235688,20.0685381 64.4114791,20.2375305 64.4114791,20.4816301 L64.4114791,21.8805114 C64.4083493,22.1152226 64.2110411,22.4219123 63.8602735,22.9069829 L60.067617,28.3178687 C61.4769459,28.2834462 62.9645695,28.4931196 64.2423597,29.2129026 C64.530489,29.3756353 64.6087848,29.6134764 64.6307079,29.84819 L64.6307079,31.5913146 C64.6307079,31.8291557 64.3676328,32.1076779 64.0920312,31.9637232 C61.8402376,30.783905 58.8493318,30.655596 56.3595196,31.9762414 C56.1058411,32.1139388 55.839635,31.8385441 55.839635,31.600703 L55.839635,29.9452039 C55.839635,29.6791976 55.8427648,29.2254197 56.1089709,28.8217161 L60.5029425,22.525186 L56.6789674,22.525186 C56.4440799,22.525186 56.2561696,22.3593246 56.2561696,22.1152226" id="path12" fill="#FFF"/><path d="M29.5572373,32.3079653 L27.3305003,32.3079653 C27.117537,32.2923196 26.9484165,32.1327156 26.9327566,31.9292971 L26.9327566,20.5097977 C26.9327566,20.281345 27.1237991,20.0998331 27.3618188,20.0998331 L29.4382274,20.0998331 C29.6543265,20.1092156 29.8265757,20.2750841 29.8422368,20.4816301 L29.8422368,21.9743978 L29.8829508,21.9743978 C30.4247585,20.531702 31.4426046,19.8588622 32.8143518,19.8588622 C34.2080196,19.8588622 35.0786706,20.531702 35.7050386,21.9743978 C36.2437153,20.531702 37.4682638,19.8588622 38.780506,19.8588622 C39.7137942,19.8588622 40.7347737,20.243789 41.3580095,21.1075279 C42.0626733,22.0682806 41.9186081,23.464032 41.9186081,24.6876635 L41.9154771,31.8948745 C41.9154771,32.1233272 41.7244346,32.3079653 41.4864148,32.3079653 L39.2628076,32.3079653 C39.0404489,32.2923196 38.8619341,32.1139388 38.8619341,31.8948745 L38.8619341,25.842444 C38.8619341,25.3605033 38.9057779,24.1587796 38.7992969,23.7018731 C38.6333097,22.9351505 38.1353471,22.7192137 37.4901869,22.7192137 C36.9515102,22.7192137 36.3877794,23.0791052 36.159155,23.6549323 C35.9305307,24.2307582 35.9524539,25.1946384 35.9524539,25.842444 L35.9524539,31.8948745 C35.9524539,32.1233272 35.7614114,32.3079653 35.5233916,32.3079653 L33.2997868,32.3079653 C33.0742947,32.2923196 32.8989109,32.1139388 32.8989109,31.8948745 L32.8957798,25.842444 C32.8957798,24.568743 33.1056109,22.6941784 31.5240339,22.6941784 C29.9236624,22.6941784 29.9862996,24.5217986 29.9862996,25.842444 L29.9862996,31.8948745 C29.9862996,32.1233272 29.7952571,32.3079653 29.5572373,32.3079653" id="path14" fill="#FFF"/><path d="M70.7127399,19.8588622 C74.0168303,19.8588622 75.8051097,22.6941784 75.8051097,26.2993494 C75.8051097,29.7824688 73.8289177,32.5458064 70.7127399,32.5458064 C67.4681531,32.5458064 65.7017945,29.7104903 65.7017945,26.177299 C65.7017945,22.6221998 67.4900763,19.8588622 70.7127399,19.8588622 M70.7315296,22.1903322 C69.0904477,22.1903322 68.9870953,24.4247847 68.9870953,25.8174087 C68.9870953,27.2131601 68.9651722,30.1924321 70.7127399,30.1924321 C72.4383832,30.1924321 72.5198113,27.7889872 72.5198113,26.3243835 C72.5198113,25.3605033 72.4790973,24.2088515 72.1878346,23.2950396 C71.9372871,22.5001518 71.4393269,22.1903322 70.7315296,22.1903322" id="path16" fill="#FFF"/><path d="M80.0894668,32.3079653 L77.8721252,32.3079653 C77.6497629,32.2923196 77.4712481,32.1139388 77.4712481,31.8948745 L77.4681183,20.4722417 C77.4869092,20.2625658 77.6716884,20.0998331 77.8971806,20.0998331 L79.9610639,20.0998331 C80.1552362,20.1092156 80.3149601,20.2406603 80.3588076,20.4190412 L80.3588076,22.1652945 L80.3995192,22.1652945 C81.0227574,20.6036805 81.8965383,19.8588622 83.4342713,19.8588622 C84.4333277,19.8588622 85.4073311,20.2187537 86.0336991,21.2045417 C86.6162209,22.1183525 86.6162209,23.6549323 86.6162209,24.7596397 L86.6162209,31.9480762 C86.5911668,32.1483613 86.4063875,32.3079653 86.187161,32.3079653 L83.9541583,32.3079653 C83.750587,32.2923196 83.5814676,32.142104 83.5595468,31.9480762 L83.5595468,25.7454301 C83.5595468,24.4967645 83.7036109,22.6691418 82.1658766,22.6691418 C81.6240701,22.6691418 81.1261062,23.0321644 80.878691,23.5829525 C80.5655088,24.28083 80.5247947,24.9755765 80.5247947,25.7454301 L80.5247947,31.8948745 C80.5216649,32.1233272 80.327489,32.3079653 80.0894692,32.3079653" id="path18" fill="#FFF"/><path d="M50.4215517,26.8532686 C50.4215517,27.7201361 50.4434748,28.4430478 50.0050171,29.2129026 C49.6511196,29.8388016 49.0873888,30.2237284 48.464153,30.2237284 C47.6091606,30.2237284 47.108067,29.5727929 47.108067,28.6120402 C47.108067,26.7155713 48.808655,26.3713279 50.4215517,26.3713279 L50.4215517,26.8532686 M52.6670809,32.2766703 C52.5198858,32.4081091 52.306919,32.4174975 52.1409318,32.3298732 C51.4018172,31.7164937 51.2671486,31.4317106 50.8631416,30.8464963 C49.6417242,32.0920321 48.774203,32.4644395 47.1926248,32.4644395 C45.316653,32.4644395 43.8603481,31.309659 43.8603481,28.9969694 C43.8603481,27.1912534 44.8374836,25.9613646 46.2342837,25.3605033 C47.4431735,24.8284884 49.1312326,24.7346055 50.4215517,24.5875198 L50.4215517,24.2996069 C50.4215517,23.7707218 50.4622657,23.144824 50.1490823,22.687921 C49.879744,22.2779565 49.359857,22.1089641 48.8994785,22.1089641 C48.0507482,22.1089641 47.2959772,22.5439628 47.1111968,23.4452552 C47.073615,23.6455439 46.9264199,23.8427015 46.7228485,23.8520899 L44.565012,23.6205062 C44.3833649,23.5798251 44.179796,23.4327369 44.2330377,23.1542148 C44.727868,20.5379629 47.0955393,19.74933 49.2126607,19.74933 C50.2962786,19.74933 51.7118695,20.037243 52.5668619,20.8571685 C53.6504773,21.8679931 53.5471273,23.2168025 53.5471273,24.6845337 L53.5471273,28.1520062 C53.5471273,29.194127 53.9793206,29.65103 54.3864598,30.21434 C54.527394,30.4146251 54.5587126,30.655596 54.3770584,30.8058116 C53.9229419,31.1844811 53.1149269,31.888616 52.6702059,32.2829312 L52.6670761,32.2766643" id="path28" fill="#FFF"/><path d="M21.2296786,26.8532686 C21.2296786,27.7201361 21.2515994,28.4430478 20.8131439,29.2129026 C20.4592441,29.8388016 19.8986454,30.2237284 19.2722774,30.2237284 C18.4172851,30.2237284 17.9193236,29.5727929 17.9193236,28.6120402 C17.9193236,26.7155713 19.6199116,26.3713279 21.2296786,26.3713279 L21.2296786,26.8532686 M23.4752066,32.2766703 C23.3280103,32.4081091 23.1150435,32.4174975 22.9490564,32.3298732 C22.2099441,31.7164937 22.0784053,31.4317106 21.6712662,30.8464963 C20.4498486,32.0920321 19.5854632,32.4644395 18.0007505,32.4644395 C16.1279097,32.4644395 14.6684748,31.309659 14.6684748,28.9969694 C14.6684748,27.1912534 15.6487403,25.9613646 17.0424081,25.3605033 C18.2512979,24.8284884 19.9393595,24.7346055 21.2296786,24.5875198 L21.2296786,24.2996069 C21.2296786,23.7707218 21.2703927,23.144824 20.9603403,22.687921 C20.6878684,22.2779565 20.167985,22.1089641 19.7107351,22.1089641 C18.8620084,22.1089641 18.1041017,22.5439628 17.9193236,23.4452552 C17.8817406,23.6455439 17.7345443,23.8427015 17.5341076,23.8520899 L15.3731387,23.6205062 C15.1914916,23.5798251 14.9910537,23.4327369 15.0411632,23.1542148 C15.5391258,20.5379629 17.9036637,19.74933 20.0207887,19.74933 C21.1044031,19.74933 22.5199941,20.037243 23.3749864,20.8571685 C24.4586043,21.8679931 24.3552519,23.2168025 24.3552519,24.6845337 L24.3552519,28.1520062 C24.3552519,29.194127 24.7874476,29.65103 25.1945867,30.21434 C25.3386508,30.4146251 25.3699693,30.655596 25.1883223,30.8058116 C24.7342059,31.1844811 23.926192,31.888616 23.4814686,32.2829312 L23.4752066,32.2766643" id="path30" fill="#FFF"/></g></g></svg>