app/static/assets/images/payments/verifone-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
6.4 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>Verifone-dark</title><desc>Created with Sketch.</desc><g id="Dark-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-610.000000, -1089.000000)"><g id="Verifone-dark" transform="translate(610.000000, 1089.000000)"><rect id="Rectangle" fill="#1A1919" x="0" y="0" width="100" height="60" rx="4"/><path d="M43.128744,25.6478017 L46.2105051,25.6478017 L46.7059317,23.161681 L43.6236519,23.161681 L43.128744,25.6478017 L43.128744,25.6478017 Z M42.8094403,27.2468534 L45.8919795,27.2468534 L43.9338771,37.0630603 C43.7909556,37.1127155 43.3497406,37.2872845 42.7404437,37.2872845 C41.9181911,37.2872845 41.1638976,36.9681466 41.1638976,35.836681 C41.1638976,35.6238362 41.1885392,35.3815086 41.243529,35.1060776 C41.8559386,32.0429741 42.8094403,27.2468534 42.8094403,27.2468534 L42.8094403,27.2468534 Z M73.4151331,27.0226293 C71.3636519,27.0226293 70.5481433,28.2190086 70.1652901,28.9472845 L70.1289761,28.9472845 L70.247256,27.2489224 L67.2012901,27.2489224 C67.1813174,27.6223707 67.0495495,28.7996121 66.8542321,29.8149569 C66.8542321,29.8149569 66.1507782,33.3779741 66.0177133,34.0602155 C65.9162935,34.5813362 65.7308328,35.3517672 65.7308328,35.7989224 C65.7308328,36.7509052 66.215884,37.2875431 67.298041,37.2875431 C67.9050034,37.2875431 68.342587,37.1222845 68.5018498,37.0630603 L69.5204573,31.9509052 C69.8029283,30.5393534 70.8282799,29.6155603 72.0473925,29.6155603 C73.0309829,29.6155603 73.5012491,30.3298707 73.5012491,30.9138362 C73.5012491,31.4220259 73.3731126,31.9853017 73.2740273,32.4834052 L72.8359249,34.6726293 C72.7837884,34.9353879 72.6722526,35.4402155 72.6722526,35.8361638 C72.6722526,36.8039224 73.2203345,37.2875431 74.2612491,37.2875431 C74.8295631,37.2875431 75.1898498,37.1460776 75.4450853,37.0630603 L76.3591604,32.4803017 C76.5573311,31.4445259 76.6304778,30.8990948 76.6304778,30.2398707 C76.6304778,28.3421121 75.5158976,27.0226293 73.4151331,27.0226293 L73.4151331,27.0226293 Z M59.7237201,29.39625 C58.0008805,29.39625 57.0466007,31.1499569 57.0466007,32.713319 C57.0466007,34.0317672 57.644744,34.9146983 59.0041843,34.9146983 C60.5410444,34.9146983 61.7438157,33.6125431 61.7438157,31.3899569 C61.7438157,30.3730603 61.2001433,29.39625 59.7237201,29.39625 L59.7237201,29.39625 Z M58.8153515,37.2878017 C55.5151877,37.2878017 53.9360478,35.3171121 53.9360478,32.8051293 C53.9360478,29.3584914 56.3127986,27.0226293 59.9856997,27.0226293 C63.1725119,27.0226293 64.864744,28.9439224 64.864744,31.4114224 C64.864744,35.1089224 62.3261365,37.2878017 58.8153515,37.2878017 L58.8153515,37.2878017 Z M47.2732082,34.9242672 C47.2029147,35.2775431 47.1585597,35.5250431 47.1585597,35.829181 C47.1585597,36.9544397 47.9138908,37.2875431 48.7143549,37.2875431 C49.3545188,37.2875431 49.7506007,37.1132328 49.8955973,37.0630603 L51.3774676,29.6222845 L53.7739317,29.6220259 L54.2470512,27.2468534 L51.8508464,27.2471121 L51.9673106,26.6621121 C52.184157,25.5650431 52.7026689,25.0827155 53.5996246,25.0827155 C54.1985461,25.0827155 54.6830785,25.18875 54.8514198,25.2324569 L55.3024915,22.9739224 C55.1102867,22.9255603 54.224744,22.7096121 52.9140683,22.7096121 C50.8254949,22.7096121 49.4572355,23.9727155 49.0525939,26.0070259 L48.8048805,27.2468534 L47.2446758,27.2468534 L46.7712969,29.6220259 L48.3325392,29.6220259 C48.3325392,29.6220259 47.7167577,32.6985776 47.2732082,34.9242672 L47.2732082,34.9242672 Z M40.1779727,27.0228879 C38.6309966,27.0228879 37.7802116,28.0925431 37.4474198,28.9457328 L37.411884,28.9457328 L37.530942,27.2468534 L34.4836792,27.2468534 C34.4567031,27.8357328 34.3329761,28.8314224 34.0224915,30.3968534 C33.7078567,31.9832328 33.4012628,33.5657328 33.0848123,35.105819 C33.0306007,35.3690948 33.0064778,35.626681 33.0064778,35.8446983 C33.0064778,36.6513362 33.4067099,37.2867672 34.5895085,37.2867672 C35.1754608,37.2867672 35.5824369,37.1352155 35.7777543,37.0630603 L36.6843072,32.5123707 C37.0108737,30.7713362 37.6040887,29.6202155 39.3251126,29.6202155 C40.1079386,29.6202155 40.8515973,29.7865086 41.0074881,29.8320259 L41.5291126,27.21375 C41.4165392,27.1749569 40.9646894,27.0228879 40.1779727,27.0228879 L40.1779727,27.0228879 Z M84.8838703,31.2254741 C85.0488396,30.3254741 84.5230648,29.39625 83.3348191,29.39625 C81.8838157,29.39625 81.2465051,30.3834052 80.961959,31.2254741 L84.8838703,31.2254741 L84.8838703,31.2254741 Z M86.2593925,34.8782328 C86.2593925,36.2434914 84.9318567,37.2903879 82.5810444,37.2903879 C79.3319795,37.2903879 77.7432423,35.2749569 77.7432423,32.8077155 C77.7432423,30.3585776 79.3758157,27.0252155 83.3607577,27.0252155 C85.9880751,27.0252155 87.9526621,28.3250431 87.9526621,31.3007328 C87.9526621,32.0326293 87.7889898,32.8281466 87.7186962,33.1467672 L80.7347372,33.1467672 C80.7230648,33.860819 81.3274334,35.098319 83.7550239,35.098319 C84.8369215,35.098319 86.062,34.7176293 86.2593925,34.6206466 L86.2593925,34.8782328 L86.2593925,34.8782328 Z M29.1927304,31.2254741 C29.3574403,30.3254741 28.8316655,29.39625 27.6434198,29.39625 C26.1924164,29.39625 25.5553652,30.3834052 25.2705597,31.2254741 L29.1927304,31.2254741 L29.1927304,31.2254741 Z M30.5679932,34.8782328 C30.5679932,36.2434914 29.2404573,37.2903879 26.8899044,37.2903879 C23.6405802,37.2903879 22.0521024,35.2749569 22.0521024,32.8077155 C22.0521024,30.3585776 23.6844164,27.0252155 27.6696177,27.0252155 C30.2969352,27.0252155 32.2615222,28.3250431 32.2615222,31.3007328 C32.2615222,32.0326293 32.0978498,32.8281466 32.0272969,33.1467672 L25.0435973,33.1467672 C25.0319249,33.860819 25.6360341,35.098319 28.0636246,35.098319 C29.1455222,35.098319 30.3706007,34.7176293 30.5679932,34.6206466 L30.5679932,34.8782328 L30.5679932,34.8782328 Z M12.0473379,23.9067672 L15.1480341,23.9067672 L15.1480341,33.6668534 C15.1480341,35.1345259 15.8815768,35.88375 17.0591877,35.88375 C17.1792833,35.88375 17.2500956,35.8684914 17.2734403,35.8628017 C16.7572628,36.6407328 16.0880478,37.27875 14.5514471,37.27875 C12.9256177,37.27875 12.0473379,36.1547845 12.0473379,34.4680603 L12.0473379,23.9067672 L12.0473379,23.9067672 Z" id="Fill-1" fill="#FFF"/><path d="M16.0117884,32.65875 L16.0117884,33.6831466 C16.0117884,34.6726293 16.5484573,35.0271983 17.1344096,35.0271983 C17.7333311,35.0271983 18.0539317,34.6227155 18.3480751,34.1628879 C18.8409078,33.3929741 24.8633242,23.9067672 24.8633242,23.9067672 L21.6404573,23.9067672 L16.0117884,32.65875" id="Fill-2" fill="#00A3DA"/></g></g></svg>